1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00
Jay Satiro 979d2877be transfer: Fix chunked-encoding upload bug
- 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: moohoorama@users.noreply.github.com

Closes https://github.com/curl/curl/pull/2010
2017-10-26 14:34:46 -04:00
..
2017-10-25 18:48:05 +02:00
2016-10-18 13:59:54 +02:00
2017-08-23 03:17:10 -04:00
2017-04-22 11:25:27 +02:00
2017-10-25 18:48:05 +02:00
2017-09-18 22:55:50 +02:00
2017-03-26 23:56:23 +02:00
2017-07-28 16:41:29 +02:00
2017-09-11 09:29:50 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-04-22 11:25:27 +02:00
2017-04-22 11:25:27 +02:00
2017-09-12 09:50:24 +02:00
2017-04-22 11:25:27 +02:00
2017-09-11 09:29:50 +02:00
2017-10-25 18:48:05 +02:00
2017-03-26 23:56:23 +02:00
2017-09-11 09:29:50 +02:00
2017-06-18 23:57:45 +02:00
2016-12-21 11:07:26 +01:00
2017-09-11 09:29:50 +02:00
2017-08-23 23:58:49 +02:00
2017-10-15 15:59:43 +00:00
2017-04-22 11:25:27 +02:00
2017-03-26 23:56:23 +02:00
2017-06-21 07:46:21 +02:00
2017-09-02 17:47:10 +01:00
2017-06-08 10:50:47 +02:00
2017-09-02 17:47:10 +01:00
2017-03-13 23:11:45 +01:00
2017-03-26 23:56:23 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-06-30 10:17:27 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-06-30 10:17:27 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-09-11 09:29:50 +02:00
2017-03-26 23:56:23 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00