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.