Project

General

Profile

Actions

Bug #12130

closed

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

Added by labocho (Keisuke NISHI) almost 9 years ago. Updated over 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

Updated by hsbt (Hiroshi SHIBATA) over 8 years ago

  • Status changed from Open to Assigned
  • Assignee set to hsbt (Hiroshi SHIBATA)

Updated by hsbt (Hiroshi SHIBATA) over 7 years ago

  • Assignee changed from hsbt (Hiroshi SHIBATA) to normalperson (Eric Wong)

Eric

Could you review and handle this issue?

Actions #3

Updated by Anonymous over 7 years ago

  • Status changed from Assigned to Closed

Applied in changeset trunk|r59965.


webrick: handle EAGAIN/EWOULDBLOCK on proxy connections

  • lib/webrick/httpproxy.rb (do_CONNECT): high-level IO methods
    [ruby-core:82861] [Bug #12130]
    Patch by: Keisuke NISHI
Actions #4

Updated by hsbt (Hiroshi SHIBATA) over 7 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONTNEED
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0