Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4363481

persistent connections not used when issuing HTTP POST/PUT through proxy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • generic
    • generic

      Currently, sun.net.www.protocol.http.HttpURLConnection doesn't use persistent
      connections whenever issuing a POST or PUT through a proxy (see lines 159-169
      of HttpURLConnection.java). Unfortunately, this has significant performance
      implications for systems which transport data via HTTP--in the case of RMI, it
      rules out the use of persistent connections for most HTTP-tunneled RMI calls
      (since such calls typically pass through at least one proxy).

      A comment above the cited code section describes a "bug" in versions of the
      Netscape proxy in which a persistent connection is maintained between the proxy
      and client even if the connection between the proxy and targeted server is not
      persistent. However, section 8.1.3 of RFC 2068 seems to imply that this
      behavior of the proxy is acceptable:

          The proxy server MUST signal persistent connections separately with its
          clients and the origin servers (or other proxy servers) that it connects
          to. Each persistent connection applies to only one transport link.

      In light of this, it appears that the treatment of persistent connections by
      the Netscape proxy is acceptable, and that the Java runtime need not avoid
      persistent connections with proxies when issuing PUT/POST messages.

            michaelm Michael McMahon
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: