[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68485] [Ruby trunk - Feature #10532] [Feedback] [PATCH] accept_nonblock supports "exception: false"

From: matz@...
Date: 2015-03-10 11:34:06 UTC
List: ruby-core #68485
Issue #10532 has been updated by Yukihiro Matsumoto.

Status changed from Open to Feedback

I like the basic idea. Once someone review the patch (Nobu, are you willing?), it's OK to merge.

Matz.


----------------------------------------
Feature #10532: [PATCH] accept_nonblock supports "exception: false"
https://bugs.ruby-lang.org/issues/10532#change-51822

* Author: Eric Wong
* Status: Feedback
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
This is analogous to functionality found in IO#read_nonblock and
IO#wait_nonblock.  Raising exceptions for common failures on
non-blocking servers is expensive and makes $DEBUG too noisy.

This also increases performance slightly, see patch for benchmarks.

I also intend to support this in the "openssl" extension as well as
supporting connect_nonblock if this is accepted.


---Files--------------------------------
0001-accept_nonblock-supports-exception-false.patch (9.72 KB)


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

In This Thread

Prev Next