[PATCH] ws2_32: Divide values returned by SO_RCVBUF and SO_SNDBUF getsockopt options by two.
Alexandre Julliard
julliard at winehq.org
Thu May 24 16:51:24 CDT 2018
Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:
> From: Sebastian Lackner <sebastian at fds-team.de>
>
> man 7 socket
> ...
> SO_SNDBUF/SO_RCVBUF
> Sets or gets the maximum socket send buffer in bytes. The kernel
> doubles this value (to allow space for bookkeeping overhead)
> ...
>
> Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
> ---
> dlls/ws2_32/socket.c | 8 ++++++++
> dlls/ws2_32/tests/sock.c | 4 ++--
> 2 files changed, 10 insertions(+), 2 deletions(-)
This was already discussed, it's not clear that the fix is still needed,
but if it is, it should be done in a way that works on all platforms. See
https://www.winehq.org/pipermail/wine-devel/2014-November/105878.html
for the discussion.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list