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
20ab0dac
Commit
20ab0dac
authored
Aug 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.sys: Stop receiving data as long as an unread request is available.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c582cca1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
http.c
dlls/http.sys/http.c
+12
-1
No files found.
dlls/http.sys/http.c
View file @
20ab0dac
...
@@ -53,7 +53,10 @@ struct connection
...
@@ -53,7 +53,10 @@ struct connection
char
*
buffer
;
char
*
buffer
;
unsigned
int
len
,
size
;
unsigned
int
len
,
size
;
/* Things we already parsed out of the request header in parse_request(). */
BOOL
available
;
/* Things we already parsed out of the request header in parse_request().
* These are valid only if "available" is TRUE. */
unsigned
int
req_len
;
unsigned
int
req_len
;
HTTP_VERB
verb
;
HTTP_VERB
verb
;
HTTP_VERSION
version
;
HTTP_VERSION
version
;
...
@@ -272,6 +275,11 @@ static int parse_request(struct connection *conn)
...
@@ -272,6 +275,11 @@ static int parse_request(struct connection *conn)
TRACE
(
"Received a full request, length %u bytes.
\n
"
,
conn
->
req_len
);
TRACE
(
"Received a full request, length %u bytes.
\n
"
,
conn
->
req_len
);
/* Stop selecting on incoming data until a response is queued. */
WSAEventSelect
(
conn
->
socket
,
request_event
,
FD_CLOSE
);
conn
->
available
=
TRUE
;
return
1
;
return
1
;
}
}
...
@@ -294,6 +302,9 @@ static void receive_data(struct connection *conn)
...
@@ -294,6 +302,9 @@ static void receive_data(struct connection *conn)
}
}
conn
->
len
+=
len
;
conn
->
len
+=
len
;
if
(
conn
->
available
)
return
;
/* waiting for an HttpReceiveHttpRequest() call */
TRACE
(
"Received %u bytes of data.
\n
"
,
len
);
TRACE
(
"Received %u bytes of data.
\n
"
,
len
);
if
(
!
(
ret
=
parse_request
(
conn
)))
if
(
!
(
ret
=
parse_request
(
conn
)))
...
...
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