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

Cannot send very large files using URLConnection over SSL (HTTPS)

XMLWordPrintable

    • beta
    • x86
    • windows_nt



      Name: skT45625 Date: 11/08/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      When trying to use Multipart/form-data over an SSL link using the convenient
      URLConnection derivatives, the buffer doesn't get flushed until the output
      stream is closed. So for a 30 Mb file I get "Out of memory" errors.

      The plugin class BrowserHttpsURLConnection can handle proxies correctly. Rather
      than reinventing that wheel, it would be nice if it could handle large files.
      The problem seems to be that BrowserHttpsOutputStream has no flush method and
      only writes the data when the stream is closed. This is unacceptable when the
      stream is large.
      (Review ID: 110146)
      ======================================================================

            stanleyh Stanley Ho (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: