Skip Menu |

This queue is for tickets about the LWP-Protocol-socks CPAN distribution.

Report information
The Basics
Id: 90411
Status: open
Priority: 0/
Queue: LWP-Protocol-socks

People
Owner: Nobody in particular
Requestors: blue [...] thisisnotmyrealemail.com
Cc:
AdminCc:

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



Subject: misleading error when site is down
When using a socks proxy to request a site that is down, the returned error is '500 Can't call method "http_configure" on an undefined', instead of something more appropriate. I think the problem might that in LWP::Protocol::https::socks::Socke::new, $ssl is assumed to be valid when http_configure is called on it, but IO::Handle states "if the fdopen fails, the object is destroyed". So you need to test $ssl before using it.
Птн Ноя 15 10:18:28 2013, blue писал: Show quoted text
> When using a socks proxy to request a site that is down, the returned > error is '500 Can't call method "http_configure" on an undefined', > instead of something more appropriate. > > I think the problem might that in > LWP::Protocol::https::socks::Socke::new, $ssl is assumed to be valid > when http_configure is called on it, but IO::Handle states "if the > fdopen fails, the object is destroyed". So you need to test $ssl > before using it.
Looks like it is fixed in 1.7