[ruby-core:74080] [Ruby trunk Bug#12130] WEBrick::HTTPProxy closes connection when the socket is not writable temporally

From: labocho@...
Date: 2016-03-01 06:45:11 UTC
List: ruby-core #74080
Issue #12130 has been reported by Keisuke NISHI.

----------------------------------------
Bug #12130: WEBrick::HTTPProxy closes connection when the socket is not writable temporally
https://bugs.ruby-lang.org/issues/12130

* Author: Keisuke NISHI
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
`WEBrick::HTTPProxy#do_CONNECT` closes connection when `Errno::EAGAIN` or `Errno::WOULDBLOCK` occurred.
These exceptions will raise when the socket is not writable temporally.
I expect that the proxy will wait until the socket will be writable rather than closing the connection.


---Files--------------------------------
webrick_httpproxy_will_close_connection.patch (805 Bytes)
webrick_httpproxy_will_close_connection.rb (1.25 KB)


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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next