server: Inherit the SO_RCVTIMEO value in accept_socket().
This commit is contained in:
parent
418dff0c01
commit
03391aab24
2 changed files with 2 additions and 2 deletions
|
@ -4828,8 +4828,7 @@ static void test_accept_inheritance(void)
|
|||
len = sizeof(value);
|
||||
ret = getsockopt(server, int_tests[i].optname, int_tests[i].optval, (char *)&value, &len);
|
||||
ok(!ret, "test %u: got error %u\n", i, WSAGetLastError());
|
||||
todo_wine_if (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);
|
||||
}
|
||||
|
||||
len = sizeof(linger);
|
||||
|
|
|
@ -2002,6 +2002,7 @@ static struct sock *accept_socket( struct sock *sock )
|
|||
acceptsock->sndbuf = sock->sndbuf;
|
||||
acceptsock->rcvbuf = sock->rcvbuf;
|
||||
acceptsock->sndtimeo = sock->sndtimeo;
|
||||
acceptsock->rcvtimeo = sock->rcvtimeo;
|
||||
acceptsock->connect_time = current_time;
|
||||
|
||||
if (sock->event) acceptsock->event = (struct event *)grab_object( sock->event );
|
||||
|
|
Loading…
Add table
Reference in a new issue