Loading tests/server/sws.c +4 −3 Original line number Diff line number Diff line Loading @@ -788,7 +788,6 @@ int main(int argc, char *argv[]) #ifdef CURL_SWS_FORK_ENABLED bool use_fork = FALSE; #endif int opt; while(argc>arg) { if(!strcmp("--version", argv[arg])) { Loading Loading @@ -951,15 +950,17 @@ int main(int argc, char *argv[]) #endif logmsg("====> Client connect"); #ifdef TCP_NODELAY /* * Disable the Nagle algorithm to make it easier to send out a large * response in many small segments to torture the clients more. */ opt = 1; flag = 1; if (setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, (void *)&opt, sizeof(opt)) == -1) { (void *)&flag, sizeof(flag)) == -1) { logmsg("====> TCP_NODELAY failed"); } #endif do { if(get_request(msgsock, &req)) Loading Loading
tests/server/sws.c +4 −3 Original line number Diff line number Diff line Loading @@ -788,7 +788,6 @@ int main(int argc, char *argv[]) #ifdef CURL_SWS_FORK_ENABLED bool use_fork = FALSE; #endif int opt; while(argc>arg) { if(!strcmp("--version", argv[arg])) { Loading Loading @@ -951,15 +950,17 @@ int main(int argc, char *argv[]) #endif logmsg("====> Client connect"); #ifdef TCP_NODELAY /* * Disable the Nagle algorithm to make it easier to send out a large * response in many small segments to torture the clients more. */ opt = 1; flag = 1; if (setsockopt(msgsock, IPPROTO_TCP, TCP_NODELAY, (void *)&opt, sizeof(opt)) == -1) { (void *)&flag, sizeof(flag)) == -1) { logmsg("====> TCP_NODELAY failed"); } #endif do { if(get_request(msgsock, &req)) Loading