Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1930

Socket timeout is not honored on proxy "CONNECT" request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Invalid
    • 4.5.5
    • None
    • HttpClient (classic)
    • None
    • Oracle Linux/RHEL 7.5

    Description

      I have set a socket timeout on my request, but I've discovered that the socket timeout is not honored when a proxy is being used and the proxy does not respond to the "CONNECT" command. See the attached stack trace, and note the call in org.apache.http.impl.execchain.MainClientExec.createTunnelToTarget - this is the request that does not timeout. Thanks.

      It's trivial to reproduce this by using Fiddler as the proxy, with Fiddler configured to break before requests (Rules->Automatic Breakpoints->Before Requests).

      Attachments

        1. stack_trace.txt
          2 kB
          William Ruppel

        Activity

          People

            Unassigned Unassigned
            wcruppel William Ruppel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: