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
ee2de0b8
Commit
ee2de0b8
authored
Nov 28, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Send notifications from receive_response() directly.
parent
0ed84471
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
request.c
dlls/winhttp/request.c
+7
-1
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/request.c
View file @
ee2de0b8
...
...
@@ -1772,6 +1772,7 @@ static DWORD read_more_data( struct request *request, int maxlen, BOOL notify )
maxlen
-
request
->
read_size
,
0
,
&
len
);
if
(
notify
)
send_callback
(
&
request
->
hdr
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
&
len
,
sizeof
(
len
)
);
request
->
read_reply_len
+=
len
;
request
->
read_size
+=
len
;
return
ret
;
...
...
@@ -2212,6 +2213,8 @@ static DWORD send_request( struct request *request, const WCHAR *headers, DWORD
int
bytes_sent
;
DWORD
ret
,
len
;
request
->
read_reply_len
=
0
;
if
(
request
->
flags
&
REQUEST_FLAG_WEBSOCKET_UPGRADE
&&
request
->
websocket_set_send_buffer_size
<
MIN_WEBSOCKET_SEND_BUFFER_SIZE
)
{
...
...
@@ -2530,7 +2533,7 @@ static DWORD read_line( struct request *request, char *buffer, DWORD *len )
remove_data
(
request
,
bytes_read
);
if
(
eol
)
break
;
if
((
ret
=
read_more_data
(
request
,
-
1
,
TRU
E
)))
return
ret
;
if
((
ret
=
read_more_data
(
request
,
-
1
,
FALS
E
)))
return
ret
;
if
(
!
request
->
read_size
)
{
*
len
=
0
;
...
...
@@ -2841,6 +2844,9 @@ static DWORD receive_response( struct request *request, BOOL async )
netconn_set_timeout
(
request
->
netconn
,
FALSE
,
request
->
receive_response_timeout
);
for
(;;)
{
send_callback
(
&
request
->
hdr
,
WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE
,
NULL
,
0
);
send_callback
(
&
request
->
hdr
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
,
&
request
->
read_reply_len
,
sizeof
(
request
->
read_reply_len
)
);
if
((
ret
=
read_reply
(
request
)))
break
;
size
=
sizeof
(
DWORD
);
...
...
dlls/winhttp/winhttp_private.h
View file @
ee2de0b8
...
...
@@ -220,6 +220,7 @@ struct request
}
creds
[
TARGET_MAX
][
SCHEME_MAX
];
unsigned
int
websocket_receive_buffer_size
;
unsigned
int
websocket_send_buffer_size
,
websocket_set_send_buffer_size
;
int
read_reply_len
;
};
enum
socket_state
...
...
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