mirror of
https://github.com/reactos/reactos.git
synced 2024-06-24 06:51:47 +00:00
[MSAFD] Workaround regression CORE-15804
To fix 'MSTSC fails to connect with error "ERROR: Bad packet header"'
which regressed by 0.4.12-dev-752-g
6bc61f63f1
In 0.4.12 and 0.4.13 releases I totally reverted
Pierre Schweitzer's work instead.
Thanks to Doug Lyons, author of this new workaround,
we can keep Pierre's work.
We think MSAFD is a better place to workaround than
our MSTSC binary, because our MSTSC runs fine on
W2K3SP2.
I will backport this new workaround also into 0.4.14RC.
This commit is contained in:
parent
6c0ff7bd84
commit
666fe66fe9
|
@ -2890,6 +2890,10 @@ WSPSetSockOpt(
|
|||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
/* FIXME: We should not have to limit the packet receive buffer size like this. workaround for CORE-15804 */
|
||||
if (*(PULONG)optval > 0x2000)
|
||||
*(PULONG)optval = 0x2000;
|
||||
|
||||
SetSocketInformation(Socket,
|
||||
AFD_INFO_RECEIVE_WINDOW_SIZE,
|
||||
NULL,
|
||||
|
|
Loading…
Reference in a new issue