mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 20:34:28 +08:00
removed setting send buffer to zero size. it just reduced
performance.
This commit is contained in:
@@ -134,12 +134,6 @@ void CTCPSocket::init()
|
||||
// mouse motion messages are much less useful if they're delayed.
|
||||
CNetwork::TCPNoDelayType flag = 1;
|
||||
CNetwork::setsockopt(m_fd, SOL_TCP, TCP_NODELAY, &flag, sizeof(flag));
|
||||
|
||||
#if !defined(CONFIG_PLATFORM_WIN32)
|
||||
// don't buffer sends, we merge messages ourself
|
||||
int data = 0;
|
||||
CNetwork::setsockopt(m_fd, SOL_SOCKET, SO_SNDBUF, &data, sizeof(data));
|
||||
#endif
|
||||
}
|
||||
|
||||
void CTCPSocket::ioThread(void*)
|
||||
|
||||
Reference in New Issue
Block a user