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

This commit is contained in:
Juan Lang 2009-07-21 13:52:47 -07:00 committed by Alexandre Julliard
parent 64d69b55f9
commit 80100334f1
1 changed files with 2 additions and 0 deletions

View File

@ -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 );