Commit 80100334 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

winhttp: Set a socket's timeouts when it's created.

parent 64d69b55
......@@ -920,6 +920,8 @@ static BOOL open_connection( request_t *request )
heap_free( addressW );
return FALSE;
}
netconn_set_timeout( &request->netconn, TRUE, request->send_timeout );
netconn_set_timeout( &request->netconn, FALSE, request->recv_timeout );
if (!netconn_connect( &request->netconn, (struct sockaddr *)&connect->sockaddr, slen ))
{
netconn_close( &request->netconn );
......
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