Issue #12130 has been updated by Hiroshi SHIBATA.

Status changed from Open to Assigned
Assignee set to Hiroshi SHIBATA

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

* Author: Keisuke NISHI
* Status: Assigned
* Priority: Normal
* Assignee: Hiroshi SHIBATA
* 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:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>