[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 12/29: tests: Fix bounce requests with truncated writes

From: gnunet
Subject: [gnurl] 12/29: tests: Fix bounce requests with truncated writes
Date: Fri, 10 Jan 2020 23:05:50 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit be83fe11bf97c9a1ebe71a0bd0e7c2765641dee5
Author: Marc Aldorasi <address@hidden>
AuthorDate: Thu Jan 2 12:05:11 2020 -0500

    tests: Fix bounce requests with truncated writes
    Prior to this change the swsbounce check in service_connection could
    fail because prevtestno and prevpartno were not set, which would cause
    the wrong response data to be sent to some tests and cause them to fail.
 tests/server/sws.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/server/sws.c b/tests/server/sws.c
index c1bbdf7e0..10982b63a 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -1242,6 +1242,8 @@ static int send_doc(curl_socket_t sock, struct 
httprequest *req)
     logmsg("Sending response failed. Only (%zu bytes) of (%zu bytes) "
            "were sent",
            responsesize-count, responsesize);
+    prevtestno = req->testno;
+    prevpartno = req->partno;
     return -1;

To stop receiving notification emails like this one, please contact

reply via email to

[Prev in Thread] Current Thread [Next in Thread]