Disable logging. Version uses TCP_CORK option

This commit is contained in:
ftc
2023-03-14 23:30:58 +03:00
parent 9bf8c97ebf
commit 37dc90a65a
6 changed files with 21 additions and 10 deletions
-6
View File
@@ -97,12 +97,6 @@ void* IPSocketThread(void* arg)
cerr << "Error accepting connection, errno = " << errno << "\n";
continue;
}
int yes = 1;
int result = setsockopt(recsock, IPPROTO_TCP, TCP_NODELAY, (char*)&yes, sizeof(int));
if (result < 0)
{
cerr << "Error setting socket option, errno = " << errno << "\n";
}
cout << "Accepted connection from " << inet_ntoa(peeraddr.sin_addr) << ":" << ntohs(peeraddr.sin_port) << "\n";
CreateThread(&ProcessRequests, &recsock);
}