Project

General

Profile

Actions

Feature #10532

closed

[PATCH] accept_nonblock supports "exception: false"

Added by normalperson (Eric Wong) about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Target version:
[ruby-core:66385]

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0