Skip to content

Bad file descriptor #2

@twusr

Description

@twusr

perl_file ///
use IO::Socket::Timeout;

creates a standard IO::Socket::INET object, with a connection timeout

my $socket = IO::Socket::INET->new( Timeout => 2 );

enable read and write timeouts on the socket

IO::Socket::Timeout->enable_timeouts_on($socket);

setup the timeouts

$socket->read_timeout(60);
$socket->write_timeout(60);

error ///

setsockopt(SO_RCVTIMEO): Bad file descriptor at /usr/local/share/perl5/IO/Socket/Timeout.pm line 49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions