From 2a278fd73573d025e6d5ebde8b10d446c27d6d3f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Aug 2018 13:57:50 +0200 Subject: CURLINFO_SIZE_UPLOAD: fix missing counter update Adds test 1522 for verification. Reported-by: cjmsoregan Fixes #2847 Closes #2864 --- tests/data/test1522 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tests/data/test1522 (limited to 'tests/data/test1522') diff --git a/tests/data/test1522 b/tests/data/test1522 new file mode 100644 index 000000000..91d6a33a2 --- /dev/null +++ b/tests/data/test1522 @@ -0,0 +1,53 @@ + + + +CURLINFO_SIZE_UPLOAD + + + +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: text/html +Funny-head: yesyes + +-foo- + + +# +# Client-side + + +http + + +lib1522 + + + +CURLINFO_SIZE_UPLOAD with small SO_SNDBUF + + + +http://%HOSTIP:%HTTPPORT/1522 + + + +# +# Verify data after the test has been "shot" + + +-foo- +uploadSize = 40960 +!!!!!!!!!! PASS + + + -- cgit v1.2.3