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
12e6c14e
Commit
12e6c14e
authored
Nov 26, 2013
by
Ričardas Barkauskas
Committed by
Alexandre Julliard
Nov 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Move handling of existing request connections to open_http_connection.
parent
992c2bd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
http.c
dlls/wininet/http.c
+16
-16
No files found.
dlls/wininet/http.c
View file @
12e6c14e
...
...
@@ -4786,9 +4786,22 @@ static DWORD open_http_connection(http_request_t *request, BOOL *reusing)
netconn_t
*
netconn
=
NULL
;
DWORD
res
;
assert
(
!
request
->
netconn
);
reset_data_stream
(
request
);
if
(
request
->
netconn
)
{
if
(
NETCON_is_alive
(
request
->
netconn
))
{
*
reusing
=
TRUE
;
return
ERROR_SUCCESS
;
}
else
{
free_netconn
(
request
->
netconn
);
request
->
netconn
=
NULL
;
}
}
res
=
HTTP_ResolveName
(
request
);
if
(
res
!=
ERROR_SUCCESS
)
return
res
;
...
...
@@ -4936,20 +4949,6 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
loop_next
=
FALSE
;
if
(
request
->
netconn
)
{
if
(
!
NETCON_is_alive
(
request
->
netconn
))
{
free_netconn
(
request
->
netconn
);
request
->
netconn
=
NULL
;
}
else
{
reset_data_stream
(
request
);
}
}
reusing_connection
=
request
->
netconn
!=
NULL
;
if
(
redirected
)
{
request
->
contentLength
=
~
0u
;
request
->
bytesToWrite
=
0
;
...
...
@@ -4984,7 +4983,8 @@ static DWORD HTTP_HttpSendRequestW(http_request_t *request, LPCWSTR lpszHeaders,
TRACE
(
"Request header -> %s
\n
"
,
debugstr_w
(
requestString
)
);
if
(
!
reusing_connection
&&
(
res
=
open_http_connection
(
request
,
&
reusing_connection
))
!=
ERROR_SUCCESS
)
res
=
open_http_connection
(
request
,
&
reusing_connection
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
/* send the request as ASCII, tack on the optional data */
...
...
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