mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[core,tcp] fix a regression
with 2e5de43564 a bug was introduced
disabling the TCP buffering. revert that.
This commit is contained in:
@@ -1291,8 +1291,8 @@ int freerdp_tcp_default_connect(rdpContext* context, rdpSettings* settings, cons
|
||||
}
|
||||
|
||||
/* receive buffer must be a least 32 K */
|
||||
UINT32 optval = 0;
|
||||
socklen_t optlen = 0;
|
||||
UINT32 optval = 1;
|
||||
socklen_t optlen = sizeof(optval);
|
||||
if (getsockopt(sockfd, SOL_SOCKET, SO_RCVBUF, (void*)&optval, &optlen) == 0)
|
||||
{
|
||||
if (optval < (1024 * 32))
|
||||
|
||||
Reference in New Issue
Block a user