Skip to content
  1. Nov 05, 2017
  2. Nov 04, 2017
  3. Nov 03, 2017
  4. Nov 02, 2017
  5. Nov 01, 2017
  6. Oct 31, 2017
  7. Oct 30, 2017
  8. Oct 29, 2017
  9. Oct 28, 2017
  10. Oct 27, 2017
  11. Oct 26, 2017
    • Jay Satiro's avatar
      transfer: Fix chunked-encoding upload bug · 979d2877
      Jay Satiro authored
      - When uploading via chunked-encoding don't compare file size to bytes
        sent to determine whether the upload has finished.
      
      Chunked-encoding adds its own overhead which why the bytes sent is not
      equal to the file size. Prior to this change if a file was uploaded in
      chunked-encoding and its size was known it was possible that the upload
      could end prematurely without sending the final few chunks. That would
      result in a server hang waiting for the remaining data, likely followed
      by a disconnect.
      
      The scope of this bug is limited to some arbitrary file sizes which have
      not been determined. One size that triggers the bug is 475020.
      
      Bug: https://github.com/curl/curl/issues/2001
      
      
      Reported-by: default avatar <moohoorama@users.noreply.github.com>
      
      Closes https://github.com/curl/curl/pull/2010
      979d2877