disable nagle algorithm to try to speed things up

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-17 10:42:37 +09:30
1 parent f595de3083
commit f7a8d2647b
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ int set_nonblock(int fd)
retVal=-1;
break;
}
if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) == -1)
if (fcntl(fd, F_SETFL, flags | O_NONBLOCK | O_NDELAY) == -1)
{
perror("fcntl");
// LOG_ERROR("set_nonblock: fcntl(%d,F_SETFL,n|O_NONBLOCK)",fd);