This is to reduce exceptions for code which issues a (IMHO,
unnecessary) second connect() syscall.
I'll update ext/socket/lib/socket.rb to reduce exceptions on
:connect_timeout if this is accepted.
Personally, I never bother issuing a second connect() syscall
anymore and just catch the failures when calling
write/read/sendmsg/recvmsg/etc, but maybe we need to keep the
second connect() syscall in socket.rb for some odd systems...
This is to reduce exceptions for code which issues a (IMHO,
unnecessary) second connect() syscall.
I'll update ext/socket/lib/socket.rb to reduce exceptions on
:connect_timeout if this is accepted.
It is a good idea.
Personally, I never bother issuing a second connect() syscall
anymore and just catch the failures when calling
write/read/sendmsg/recvmsg/etc, but maybe we need to keep the
second connect() syscall in socket.rb for some odd systems...