Commit a58cd78c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Inherit the SO_SNDBUF value in accept_socket().

parent ddc6c3fb
...@@ -4828,7 +4828,7 @@ static void test_accept_inheritance(void) ...@@ -4828,7 +4828,7 @@ static void test_accept_inheritance(void)
len = sizeof(value); len = sizeof(value);
ret = getsockopt(server, int_tests[i].optname, int_tests[i].optval, (char *)&value, &len); ret = getsockopt(server, int_tests[i].optname, int_tests[i].optval, (char *)&value, &len);
ok(!ret, "test %u: got error %u\n", i, WSAGetLastError()); ok(!ret, "test %u: got error %u\n", i, WSAGetLastError());
todo_wine_if (i >= 3 && i <= 6) todo_wine_if (i >= 4 && i <= 6)
ok(value == int_tests[i].value, "test %u: got value %#x\n", i, value); ok(value == int_tests[i].value, "test %u: got value %#x\n", i, value);
} }
......
...@@ -1999,6 +1999,7 @@ static struct sock *accept_socket( struct sock *sock ) ...@@ -1999,6 +1999,7 @@ static struct sock *accept_socket( struct sock *sock )
acceptsock->message = sock->message; acceptsock->message = sock->message;
acceptsock->reuseaddr = sock->reuseaddr; acceptsock->reuseaddr = sock->reuseaddr;
acceptsock->exclusiveaddruse = sock->exclusiveaddruse; acceptsock->exclusiveaddruse = sock->exclusiveaddruse;
acceptsock->sndbuf = sock->sndbuf;
acceptsock->connect_time = current_time; acceptsock->connect_time = current_time;
if (sock->event) acceptsock->event = (struct event *)grab_object( sock->event ); if (sock->event) acceptsock->event = (struct event *)grab_object( sock->event );
......
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