Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 460056 Details for
Bug 605626
net-dns/updatedd ipserv.pl script needs timeouts
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch using IO::Socket::Timeout
updatedd-ipserv-timeouts.patch (text/plain), 872 bytes, created by
Maciej S. Szmigiero
on 2017-01-14 19:22:36 UTC
(
hide
)
Description:
patch using IO::Socket::Timeout
Filename:
MIME Type:
Creator:
Maciej S. Szmigiero
Created:
2017-01-14 19:22:36 UTC
Size:
872 bytes
patch
obsolete
>--- a/scripts/ipserv.pl.in 2005-03-06 22:21:36.000000000 +0100 >+++ b/scripts/ipserv.pl.in 2017-01-14 19:39:25.583277538 +0100 >@@ -20,6 +20,7 @@ > > use strict; > use IO::Socket; >+use IO::Socket::Timeout qw(IO::Socket::INET); > > my $ipv4_rex = qr/(?:\d{1,3}\.){3}\d{1,3}/imosx; > >@@ -128,7 +129,8 @@ > $socket = IO::Socket::INET->new(PeerAddr => $target->{url}, > PeerPort => $target->{port}, > Proto => "tcp", >- Type => SOCK_STREAM) >+ Type => SOCK_STREAM, >+ Timeout => 2 * 60) > or $retries--; > > } while(!defined($socket) && $retries != 0); >@@ -137,6 +139,10 @@ > die "could not connect to $target->{url}: $!"; > } > >+ IO::Socket::Timeout->enable_timeouts_on($socket); >+ $socket->read_timeout(2 * 60); >+ $socket->write_timeout(2 * 60); >+ > if(defined($target->{request})) { > print($socket $target->{request}); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 605626
:
459934
| 460056