Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
64d69b55
Commit
64d69b55
authored
Jul 21, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Store send and receive timeouts in request_t, and only set them in a…
winhttp: Store send and receive timeouts in request_t, and only set them in a netconn_t if it's connected.
parent
19e4cfd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
session.c
dlls/winhttp/session.c
+13
-2
winhttp_private.h
dlls/winhttp/winhttp_private.h
+2
-0
No files found.
dlls/winhttp/session.c
View file @
64d69b55
...
...
@@ -33,6 +33,9 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winhttp
);
#define DEFAULT_SEND_TIMEOUT 30000
#define DEFAULT_RECEIVE_TIMEOUT 30000
void
set_last_error
(
DWORD
error
)
{
/* FIXME */
...
...
@@ -633,6 +636,8 @@ HINTERNET WINAPI WinHttpOpenRequest( HINTERNET hconnect, LPCWSTR verb, LPCWSTR o
list_add_head
(
&
connect
->
hdr
.
children
,
&
request
->
hdr
.
entry
);
if
(
!
netconn_init
(
&
request
->
netconn
,
request
->
hdr
.
flags
&
WINHTTP_FLAG_SECURE
))
goto
end
;
request
->
send_timeout
=
DEFAULT_SEND_TIMEOUT
;
request
->
recv_timeout
=
DEFAULT_RECEIVE_TIMEOUT
;
if
(
!
verb
||
!
verb
[
0
])
verb
=
getW
;
if
(
!
(
request
->
verb
=
strdupW
(
verb
)))
goto
end
;
...
...
@@ -1178,10 +1183,16 @@ BOOL WINAPI WinHttpSetTimeouts( HINTERNET handle, int resolve, int connect, int
}
if
(
send
<
0
)
send
=
0
;
if
(
netconn_set_timeout
(
&
request
->
netconn
,
TRUE
,
send
))
ret
=
FALSE
;
request
->
send_timeout
=
send
;
if
(
receive
<
0
)
receive
=
0
;
if
(
netconn_set_timeout
(
&
request
->
netconn
,
FALSE
,
receive
))
ret
=
FALSE
;
request
->
recv_timeout
=
receive
;
if
(
netconn_connected
(
&
request
->
netconn
))
{
if
(
netconn_set_timeout
(
&
request
->
netconn
,
TRUE
,
send
))
ret
=
FALSE
;
if
(
netconn_set_timeout
(
&
request
->
netconn
,
FALSE
,
receive
))
ret
=
FALSE
;
}
release_object
(
&
request
->
hdr
);
return
ret
;
...
...
dlls/winhttp/winhttp_private.h
View file @
64d69b55
...
...
@@ -139,6 +139,8 @@ typedef struct
LPWSTR
version
;
LPWSTR
raw_headers
;
netconn_t
netconn
;
int
send_timeout
;
int
recv_timeout
;
LPWSTR
status_text
;
DWORD
content_length
;
/* total number of bytes to be read (per chunk) */
DWORD
content_read
;
/* bytes read so far */
...
...
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