New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timeout problem in IO::Socket #1197
Comments
From wilfredm@inet.kpn.comCreated by wmollenvanger@yahoo.comThe LWP library I'm using had problems with defined timeouts so I traced sub connect { eval { if($timeout) { my $ok = connect($fh, $addr); alarm(0) croak "connect: timeout" undef $fh unless $ok; $fh; Shouldn't the line were the signal handler is defined read: local($SIG{ALRM}) = $timeout ? sub { undef $fh; die; } otherwise it will 'never' timeout on the connect() call. Regards, Wilfred. Perl Info
|
From @gisleWilfred Mollenvanger <wilfredm@inet.kpn.com> writes:
The latest version of IO::Socket, which is bundled with perl5.5.650 I don't know if perl5.005_04 if/when it comes out will try to upgrade Regards, |
Migrated from rt.perl.org#2167 (status was 'resolved')
Searchable as RT2167$
The text was updated successfully, but these errors were encountered: