Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-264

Support >2GB payloads in a single request when running default http driver on Java 7

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.2, 1.7.0
    • 1.9.0
    • jclouds-blobstore
    • None

    Description

      The default http driver uses java's HttpUrlConnection, which uses an integer to determine fixed length of content. This means that it cannot be used to send >2GB content. The current workaround is to use an http driver that supports >2GB payloads in a single request.

      This issue will conditionally allow the default driver to support >2GB payloads in a single request. It will do so via conditionally using setFixedLengthStreamingMode(long) on Java 7 and setFixedLengthStreamingMode(int) on Java 6:

      https://gist.github.com/andrewgaul/6439757

      Attachments

        Activity

          People

            adriancole Adrian Cole
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: