[#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:68493] [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false"

From: nobu@...
Date: 2015-03-11 06:57:19 UTC
List: ruby-core #68493
Issue #10532 has been updated by Nobuyoshi Nakada.


Sorry, I've read the second link only.
Both look fine.

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

* 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