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/Makefile.inc | 2 +- tests/data/test1522 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 tests/data/test1522 (limited to 'tests/data') diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index c7769ac66..b1d9544fd 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -170,7 +170,7 @@ test1500 test1501 test1502 test1503 test1504 test1505 test1506 test1507 \ test1508 test1509 test1510 test1511 test1512 test1513 test1514 test1515 \ test1516 test1517 \ \ -test1520 test1521 \ +test1520 test1521 test1522 \ \ test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \ test1533 test1534 test1535 test1536 test1537 test1538 \ 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