Project

General

Profile

Actions

Bug #12130

closed

WEBrick::HTTPProxy closes connection when the socket is not writable temporally

Added by labocho (Keisuke NISHI) over 8 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14]
[ruby-core:74080]

Description

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.patch patch avoids Errno::EAGAIN/Errno::WOULDBLOCK labocho (Keisuke NISHI), 03/01/2016 06:41 AM
webrick_httpproxy_will_close_connection.rb (1.25 KB) webrick_httpproxy_will_close_connection.rb reproduction code labocho (Keisuke NISHI), 03/01/2016 06:42 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0