[core,tcp] fix a regression

with 2e5de43564 a bug was introduced
disabling the TCP buffering. revert that.
This commit is contained in:
akallabeth
2025-10-06 18:59:08 +02:00
parent a84c6fe03d
commit 3cfcb4c9ca

View File

@@ -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))