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
085ce269
Commit
085ce269
authored
Aug 17, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Drain content before reusing connection in open_http_connection.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
59395d88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
http.c
dlls/wininet/http.c
+8
-8
No files found.
dlls/wininet/http.c
View file @
085ce269
...
...
@@ -4745,22 +4745,22 @@ static DWORD open_http_connection(http_request_t *request, BOOL *reusing)
netconn_t
*
netconn
=
NULL
;
DWORD
res
;
reset_data_stream
(
request
);
if
(
request
->
netconn
)
{
if
(
is_valid_netconn
(
request
->
netconn
)
&&
NETCON_is_alive
(
request
->
netconn
)
)
if
(
NETCON_is_alive
(
request
->
netconn
)
&&
drain_content
(
request
,
TRUE
)
==
ERROR_SUCCESS
)
{
reset_data_stream
(
request
);
*
reusing
=
TRUE
;
return
ERROR_SUCCESS
;
}
else
{
free_netconn
(
request
->
netconn
);
request
->
netconn
=
NULL
;
}
TRACE
(
"freeing netconn
\n
"
);
free_netconn
(
request
->
netconn
);
request
->
netconn
=
NULL
;
}
reset_data_stream
(
request
);
res
=
HTTP_ResolveName
(
request
);
if
(
res
!=
ERROR_SUCCESS
)
return
res
;
...
...
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