Skip Menu |

This queue is for tickets about the HTTP-Proxy CPAN distribution.

Report information
The Basics
Id: 78263
Status: rejected
Priority: 0/
Queue: HTTP-Proxy

People
Owner: Nobody in particular
Requestors: r.ummels [...] vumc.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Proxy error on Server error 500
Date: Sun, 8 Jul 2012 08:07:55 +0000
To: "bug-HTTP-Proxy [...] rt.cpan.org" <bug-HTTP-Proxy [...] rt.cpan.org>
From: "Ummels, R." <r.ummels [...] vumc.nl>
Program: HTTP:Proxy-025 Perl: v5.14.2 OS: Linux 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC 2012 i686 i686 i386 GNU/Linux When a remote server gives an error: [Sun Jul 8 09:55:00 2012] (9497) RESPONSE: 500 Server closed connection without sending any data back This is returned in the client browser: Server closed connection without sending any data back at /usr/local/share/perl/5.14.2/Net/HTTP/Methods.pm line 345. I have tried to modify the response, in case it could be solved this way: our $check_response = HTTP::Proxy::HeaderFilter::simple->new( sub { my ( $self, $headers, $message ) = @_; if ($message->is_error) { # print STDOUT "*****", $message->status_line, "*****\n"; $self->proxy->response($server_error_page); } } ); But still get the error message in the client. I'm a newbie, so I'm not sure this is a bug or something which can be handles from my side. I hope BooK can look into this. Thanks, Roy
On Sun Jul 08 04:08:38 2012, r.ummels@vumc.nl wrote: Show quoted text
> Program: HTTP:Proxy-025 > Perl: v5.14.2 > OS: Linux 3.2.0-26-generic-pae #41-Ubuntu SMP Thu Jun 14 16:45:14 UTC > 2012 i686 i686 i386 GNU/Linux > > When a remote server gives an error: > [Sun Jul 8 09:55:00 2012] (9497) RESPONSE: 500 Server closed > connection without sending any data back > > This is returned in the client browser: > Server closed connection without sending any data back at > /usr/local/share/perl/5.14.2/Net/HTTP/Methods.pm line 345. > > I have tried to modify the response, in case it could be solved this > way: > our $check_response = HTTP::Proxy::HeaderFilter::simple->new( > sub { > my ( $self, $headers, $message ) = @_; > if ($message->is_error) { > # print STDOUT "*****", $message->status_line, > "*****\n"; > $self->proxy->response($server_error_page); > } > } > ); > > But still get the error message in the client. I'm a newbie, so I'm > not sure this is a bug or something which can be handles from my side. > > I hope BooK can look into this. >
This error message does not come from the server, it is created by the proxy when the server prematurely cuts off the connection. The same kind of message is logged by the proxy when it's the client that cuts the connection. So this is not something you can handle from your side. -- BooK