Commit 3021d79e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Kill SO_RCVTIMEO for now cause of problem with 10000 HZ delay kernel.

Not really needed, so no big deal.
parent 9f692188
......@@ -87,14 +87,16 @@ main(int argc, char **argv)
close(sock);
exit(1);
}
#if 0
#ifndef linux
tv.tv_sec = 30;
tv.tv_usec = 0;
if (setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv)) < 0) {
perror("setsockopt SO_KEEPALIVE");
perror("setsockopt SO_RCVTIMEO");
close(sock);
exit(1);
}
#endif
#endif
if (argc == 2)
n = snprintf(buf, sizeof(buf) - 1, "%s", argv[1]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment