diff options
Diffstat (limited to 'src/microhttpd/test_client_put_stop.c')
-rw-r--r-- | src/microhttpd/test_client_put_stop.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/microhttpd/test_client_put_stop.c b/src/microhttpd/test_client_put_stop.c index 7d1c66c0..814e8418 100644 --- a/src/microhttpd/test_client_put_stop.c +++ b/src/microhttpd/test_client_put_stop.c | |||
@@ -326,6 +326,15 @@ _MHD_dumbClient_create (unsigned int port, const char *method, const char *url, | |||
326 | else | 326 | else |
327 | make_blocking (clnt->sckt); | 327 | make_blocking (clnt->sckt); |
328 | 328 | ||
329 | if (1) | ||
330 | { /* Always set TCP NODELAY */ | ||
331 | const MHD_SCKT_OPT_BOOL_ on_val = 1; | ||
332 | |||
333 | if (0 != setsockopt (clnt->sckt, IPPROTO_TCP, TCP_NODELAY, | ||
334 | (const void *) &on_val, sizeof (on_val))) | ||
335 | externalErrorExitDesc ("Cannot set TCP_NODELAY option"); | ||
336 | } | ||
337 | |||
329 | clnt->port = port; | 338 | clnt->port = port; |
330 | 339 | ||
331 | if (NULL != method) | 340 | if (NULL != method) |