summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-09-27 23:23:52 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-09-28 00:13:52 +0100
commit60d10ce7e68a5f2cf771a5c079521c8e4f18d157 (patch)
tree79b04a74b51ebe063ed50f83d09ba739e1cc3add /test/src
parentc0b9d3e87264ae274b37116103ecc9e1d1b0c647 (diff)
Drain socket to get clean TCP FINs
Diffstat (limited to 'test/src')
-rw-r--r--test/src/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/src/client.c b/test/src/client.c
index 2bd640205..fe646d64f 100644
--- a/test/src/client.c
+++ b/test/src/client.c
@@ -1117,6 +1117,8 @@ int rc;
}
printf("End of script\n");
+shutdown(sock, SHUT_WR);
+while ((rc = read(sock, inbuffer, sizeof(inbuffer))) > 0) ;
close(sock);
exit(0);