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
289d21a5
Commit
289d21a5
authored
Nov 15, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Do not reference request from socket.
parent
50bea867
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
request.c
dlls/winhttp/request.c
+0
-4
notification.c
dlls/winhttp/tests/notification.c
+5
-3
winhttp_private.h
dlls/winhttp/winhttp_private.h
+0
-1
No files found.
dlls/winhttp/request.c
View file @
289d21a5
...
...
@@ -3191,7 +3191,6 @@ static void socket_destroy( struct object_header *hdr )
stop_queue
(
&
socket
->
recv_q
);
netconn_release
(
socket
->
netconn
);
release_object
(
&
socket
->
request
->
hdr
);
free
(
socket
->
read_buffer
);
free
(
socket
->
send_frame_buffer
);
free
(
socket
);
...
...
@@ -3286,9 +3285,6 @@ HINTERNET WINAPI WinHttpWebSocketCompleteUpgrade( HINTERNET hrequest, DWORD_PTR
netconn_addref
(
request
->
netconn
);
socket
->
netconn
=
request
->
netconn
;
addref_object
(
&
request
->
hdr
);
socket
->
request
=
request
;
netconn_set_timeout
(
socket
->
netconn
,
FALSE
,
socket
->
keepalive_interval
);
if
((
hsocket
=
alloc_handle
(
&
socket
->
hdr
)))
...
...
dlls/winhttp/tests/notification.c
View file @
289d21a5
...
...
@@ -671,7 +671,8 @@ static const struct notification websocket_test[] =
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_RECEIVING_RESPONSE
},
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_RESPONSE_RECEIVED
},
{
winhttp_receive_response
,
WINHTTP_CALLBACK_STATUS_HEADERS_AVAILABLE
,
NF_SIGNAL
},
{
winhttp_websocket_complete_upgrade
,
WINHTTP_CALLBACK_STATUS_HANDLE_CREATED
,
NF_SIGNAL
},
{
winhttp_websocket_complete_upgrade
,
WINHTTP_CALLBACK_STATUS_HANDLE_CREATED
},
{
winhttp_websocket_complete_upgrade
,
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
,
NF_SIGNAL
},
{
winhttp_websocket_send
,
WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
,
NF_MAIN_THREAD
|
NF_SIGNAL
},
{
winhttp_websocket_send
,
WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
,
NF_MAIN_THREAD
|
NF_SIGNAL
},
{
winhttp_websocket_send
,
WINHTTP_CALLBACK_STATUS_WRITE_COMPLETE
,
NF_MAIN_THREAD
|
NF_SIGNAL
},
...
...
@@ -680,7 +681,6 @@ static const struct notification websocket_test[] =
{
winhttp_websocket_receive
,
WINHTTP_CALLBACK_STATUS_READ_COMPLETE
,
NF_SAVE_BUFFER
|
NF_SIGNAL
},
{
winhttp_websocket_receive
,
WINHTTP_CALLBACK_STATUS_READ_COMPLETE
,
NF_SAVE_BUFFER
|
NF_SIGNAL
},
{
winhttp_websocket_close
,
WINHTTP_CALLBACK_STATUS_CLOSE_COMPLETE
,
NF_SIGNAL
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
},
{
winhttp_close_handle
,
WINHTTP_CALLBACK_STATUS_HANDLE_CLOSING
,
NF_SIGNAL
},
};
...
...
@@ -911,6 +911,9 @@ static void test_websocket(BOOL secure)
err
=
GetLastError
();
ok
(
socket
!=
NULL
,
"got %lu
\n
"
,
err
);
ok
(
err
==
ERROR_SUCCESS
,
"got %lu
\n
"
,
err
);
WinHttpCloseHandle
(
request
);
WaitForSingleObject
(
info
.
wait
,
INFINITE
);
/* The send is executed synchronously (even if sending a reasonably big buffer exceeding SSL buffer size).
...
...
@@ -1029,7 +1032,6 @@ static void test_websocket(BOOL secure)
setup_test
(
&
info
,
winhttp_close_handle
,
__LINE__
);
WinHttpCloseHandle
(
socket
);
WinHttpCloseHandle
(
request
);
WaitForSingleObject
(
info
.
wait
,
INFINITE
);
end_test
(
&
info
,
__LINE__
);
...
...
dlls/winhttp/winhttp_private.h
View file @
289d21a5
...
...
@@ -256,7 +256,6 @@ enum fragment_type
struct
socket
{
struct
object_header
hdr
;
struct
request
*
request
;
struct
netconn
*
netconn
;
int
keepalive_interval
;
unsigned
int
send_buffer_size
;
...
...
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