diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-01-21 17:34:55 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-01-21 17:34:55 +0000 |
commit | 51ffcca6f1f6005c37c25144ed8b30f5e8a094e9 (patch) | |
tree | b8a3c96923dfb3fad6f41575647d65266d40a851 /test/src/client.c | |
parent | 0240e7a160721a53365aaa3bd10bb6f3de3f9f15 (diff) |
Avoid bare TCP ACKs during TLS-on-connect startup.
We can't get the QUICKACK turned off on the accepted socket fast enough to
stop the ACK for the ClientHello - but we get the rest, under OpenSSL.
Diffstat (limited to 'test/src/client.c')
-rw-r--r-- | test/src/client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/src/client.c b/test/src/client.c index 9190af068..9beaf25bb 100644 --- a/test/src/client.c +++ b/test/src/client.c @@ -1234,6 +1234,13 @@ if (rc < 0) exit(85); } +#ifdef TCP_QUICKACK + { + int off = 0; + (void) setsockopt(srv.sock, IPPROTO_TCP, TCP_QUICKACK, US &off, sizeof(off)); + } +#endif + printf("connected\n"); |