Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5f931797
Commit
5f931797
authored
Apr 08, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Apr 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Set actual default receive response timeout to 21sec.
parent
7f0ca9c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
request.c
dlls/winhttp/request.c
+12
-4
No files found.
dlls/winhttp/request.c
View file @
5f931797
...
...
@@ -43,6 +43,14 @@ WINE_DEFAULT_DEBUG_CHANNEL(winhttp);
#define DEFAULT_KEEP_ALIVE_TIMEOUT 30000
#define ACTUAL_DEFAULT_RECEIVE_RESPONSE_TIMEOUT 21000
static
int
request_receive_response_timeout
(
struct
request
*
req
)
{
if
(
req
->
receive_response_timeout
==
-
1
)
return
ACTUAL_DEFAULT_RECEIVE_RESPONSE_TIMEOUT
;
return
req
->
receive_response_timeout
;
}
static
const
WCHAR
*
attribute_table
[]
=
{
L"Mime-Version"
,
/* WINHTTP_QUERY_MIME_VERSION = 0 */
...
...
@@ -1658,7 +1666,7 @@ static DWORD open_connection( struct request *request )
return
ret
;
}
netconn_set_timeout
(
netconn
,
TRUE
,
request
->
send_timeout
);
netconn_set_timeout
(
netconn
,
FALSE
,
request
->
receive_response_timeout
);
netconn_set_timeout
(
netconn
,
FALSE
,
request
_receive_response_timeout
(
request
)
);
request
->
netconn
=
netconn
;
...
...
@@ -1696,7 +1704,7 @@ static DWORD open_connection( struct request *request )
TRACE
(
"using connection %p
\n
"
,
netconn
);
netconn_set_timeout
(
netconn
,
TRUE
,
request
->
send_timeout
);
netconn_set_timeout
(
netconn
,
FALSE
,
request
->
receive_response_timeout
);
netconn_set_timeout
(
netconn
,
FALSE
,
request
_receive_response_timeout
(
request
)
);
request
->
netconn
=
netconn
;
}
...
...
@@ -2329,7 +2337,7 @@ static DWORD send_request( struct request *request, const WCHAR *headers, DWORD
if
(
!
chunked
&&
content_length
<=
optional_len
)
{
netconn_set_timeout
(
request
->
netconn
,
FALSE
,
request
->
receive_response_timeout
);
netconn_set_timeout
(
request
->
netconn
,
FALSE
,
request
_receive_response_timeout
(
request
)
);
request
->
read_reply_status
=
read_reply
(
request
);
if
(
request
->
state
==
REQUEST_RESPONSE_STATE_READ_RESPONSE_QUEUED
)
request
->
state
=
REQUEST_RESPONSE_STATE_READ_RESPONSE_QUEUED_REPLY_RECEIVED
;
...
...
@@ -2932,7 +2940,7 @@ static DWORD receive_response( struct request *request )
}
/* fallthrough */
case
REQUEST_RESPONSE_STATE_READ_RESPONSE_QUEUED_REQUEST_SENT
:
netconn_set_timeout
(
request
->
netconn
,
FALSE
,
request
->
receive_response_timeout
);
netconn_set_timeout
(
request
->
netconn
,
FALSE
,
request
_receive_response_timeout
(
request
)
);
request
->
read_reply_status
=
read_reply
(
request
);
request
->
state
=
REQUEST_RESPONSE_STATE_REPLY_RECEIVED
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment