[ruby-core:68908] [Ruby trunk - Feature #11072] [Open] [PATCH] connect_nonblock(..., exception: false) does not raise EISCONN

From: normalperson@...
Date: 2015-04-16 02:33:47 UTC
List: ruby-core #68908
Issue #11072 has been reported by Eric Wong.

----------------------------------------
Feature #11072: [PATCH] connect_nonblock(..., exception: false) does not raise EISCONN
https://bugs.ruby-lang.org/issues/11072

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
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...


---Files--------------------------------
0001-connect_nonblock-.-exception-false-does-not-raise-EI.patch (1.56 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next