diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-09-27 23:23:52 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-09-28 00:13:52 +0100 |
commit | 60d10ce7e68a5f2cf771a5c079521c8e4f18d157 (patch) | |
tree | 79b04a74b51ebe063ed50f83d09ba739e1cc3add /test/src | |
parent | c0b9d3e87264ae274b37116103ecc9e1d1b0c647 (diff) |
Drain socket to get clean TCP FINs
Diffstat (limited to 'test/src')
-rw-r--r-- | test/src/client.c | 2 |
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); |