Commit e7fd1ac3 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

ws2_32: Ignore a SO_SNDBUF value of 0 on macOS.

parent b72da1fd
......@@ -5808,6 +5808,17 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
optlen = sizeof(struct linger);
break;
case WS_SO_SNDBUF:
if (!*(const int *)optval)
{
FIXME("SO_SNDBUF ignoring request to disable send buffering\n");
#ifdef __APPLE__
return 0;
#endif
}
convert_sockopt(&level, &optname);
break;
case WS_SO_RCVBUF:
if (*(const int*)optval < 2048)
{
......@@ -5828,7 +5839,6 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
* however, using it the BSD way fixes bug 8513 and seems to be what
* most programmers assume, anyway */
case WS_SO_REUSEADDR:
case WS_SO_SNDBUF:
case WS_SO_TYPE:
convert_sockopt(&level, &optname);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment