NAME
Coro::PatchSet::Socket - fix Coro::Socket as much as possible
SYNOPSIS
use Coro::PatchSet::Socket;
# or
# use Coro::PatchSet 'socket';
use Coro;
async { ... }
PATCHES
timeout
In the current Coro::Socket implementation internal io_socket_timeout variable is not defined. But this variable exists in the IO::Socket::INET objects, which Coro::Socket tries to emulate. And many modules relies on the value of this variable. One of this is LWP::UserAgent, so without this variable timeout in the LWP requests will not work. This patch defines this variable with the value specified in the Timeout constructor option.
connect
In the current Coro::Socket implementation Coro::Socket->new(PeerAddr => $a, PeerPort => $p) always returns Coro::Socket object, even if connection was not successfull. But in fact it should return undef if fail occured. So, after this patch Coro::Socket constructor will always return proper value.
SEE ALSO
Coro::PatchSet, Coro::PatchSet::Handle
COPYRIGHT
Copyright Oleg G <oleg@cpan.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.