On Sat Nov 24 09:03:41 2012, OLEG wrote:
Show quoted text
The tests work for me, but I also got it to pass when removing the
EAGAIN checks, so that's probably not what caused the problem for me. I
added $SIG{PIPE} = sub { Carp::confess 'SIGPIPE' } to my script and have
attached the stacktrace it produced when it finally occurred again after
a couple of hours.
SIGPIPE at ./bot.pl line 43.
main::__ANON__('PIPE') called at /perl/lib/5.16.2/darwin-2level/IO/Handle.pm line 477
eval {...} called at /perl/lib/5.16.2/darwin-2level/IO/Handle.pm line 477
IO::Handle::syswrite('IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 402
Net::Proxy::Type::_write_to_socket('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 'IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 278
Net::Proxy::Type::is_socks4('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 160.79.35.27, 80) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 151
Net::Proxy::Type::get('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7, undef) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 171
Net::Proxy::Type::get_as_string('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7) called at ./bot.pl line 566
Bot::test_proxy('Bot=HASH(0x7f90b0b7aad0)', 160.79.35.27, 80) called at ./bot.pl line 483
Bot::find_proxy('Bot=HASH(0x7f90b0b7aad0)') called at ./bot.pl line 249
Bot::run('Bot=HASH(0x7f90b0b7aad0)') called at ./bot.pl line 43.
main::__ANON__('PIPE') called at /perl/lib/5.16.2/darwin-2level/IO/Handle.pm line 477
eval {...} called at /perl/lib/5.16.2/darwin-2level/IO/Handle.pm line 477
IO::Handle::syswrite('IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 402
Net::Proxy::Type::_write_to_socket('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 'IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 278
Net::Proxy::Type::is_socks4('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 160.79.35.27, 80) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 151
Net::Proxy::Type::get('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7, undef) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 171
Net::Proxy::Type::get_as_string('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7) called at ./bot.pl line 566
Bot::test_proxy('Bot=HASH(0x7f90b0b7aad0)', 160.79.35.27, 80) called at ./bot.pl line 483
Bot::find_proxy('Bot=HASH(0x7f90b0b7aad0)') called at ./bot.pl line 249
Bot::run('Bot=HASH(0x7f90b0b7aad0)') called at /perl/lib/5.16.2/darwin-2level/IO/Handle.pm line 477.
IO::Handle::syswrite('IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 402
Net::Proxy::Type::_write_to_socket('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 'IO::Socket::INET=GLOB(0x7f90b18eb310)', '\x{4}\x{1}\x{0}PJ}\x{e0}\x{b2}\x{0}') called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 278
Net::Proxy::Type::is_socks4('Net::Proxy::Type=HASH(0x7f90b0b944b0)', 160.79.35.27, 80) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 151
Net::Proxy::Type::get('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7, undef) called at /perl/lib/site_perl/5.16.1/Net/Proxy/Type.pm line 171
Net::Proxy::Type::get_as_string('Net::Proxy::Type=HASH(0x7f90b0b944b0)', '160.79.35.27:80', 7) called at ./bot.pl line 566
Bot::test_proxy('Bot=HASH(0x7f90b0b7aad0)', 160.79.35.27, 80) called at ./bot.pl line 483
Bot::find_proxy('Bot=HASH(0x7f90b0b7aad0)') called at ./bot.pl line 249
Bot::run('Bot=HASH(0x7f90b0b7aad0)') called at ./bot.pl line 49