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
a613bee2
Commit
a613bee2
authored
Mar 16, 2021
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WS_CHANNEL_PROPERTY_NO_DELAY.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d5e1765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
channel.c
dlls/webservices/channel.c
+9
-1
No files found.
dlls/webservices/channel.c
View file @
a613bee2
...
...
@@ -971,6 +971,7 @@ static HRESULT connect_channel_tcp( struct channel *channel )
{
struct
sockaddr_storage
storage
;
struct
sockaddr
*
addr
=
(
struct
sockaddr
*
)
&
storage
;
BOOL
nodelay
=
FALSE
;
int
addr_len
;
WS_URL_SCHEME_TYPE
scheme
;
WCHAR
*
host
;
...
...
@@ -1002,6 +1003,8 @@ static HRESULT connect_channel_tcp( struct channel *channel )
return
HRESULT_FROM_WIN32
(
WSAGetLastError
()
);
}
prop_get
(
channel
->
prop
,
channel
->
prop_count
,
WS_CHANNEL_PROPERTY_NO_DELAY
,
&
nodelay
,
sizeof
(
nodelay
)
);
setsockopt
(
channel
->
u
.
tcp
.
socket
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
const
char
*
)
&
nodelay
,
sizeof
(
nodelay
)
);
return
S_OK
;
}
...
...
@@ -2410,7 +2413,12 @@ HRESULT channel_accept_tcp( SOCKET socket, HANDLE wait, HANDLE cancel, WS_CHANNE
return
E_INVALIDARG
;
}
hr
=
sock_accept
(
socket
,
wait
,
cancel
,
&
channel
->
u
.
tcp
.
socket
);
if
((
hr
=
sock_accept
(
socket
,
wait
,
cancel
,
&
channel
->
u
.
tcp
.
socket
))
==
S_OK
)
{
BOOL
nodelay
=
FALSE
;
prop_get
(
channel
->
prop
,
channel
->
prop_count
,
WS_CHANNEL_PROPERTY_NO_DELAY
,
&
nodelay
,
sizeof
(
nodelay
)
);
setsockopt
(
channel
->
u
.
tcp
.
socket
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
const
char
*
)
&
nodelay
,
sizeof
(
nodelay
)
);
}
LeaveCriticalSection
(
&
channel
->
cs
);
return
hr
;
...
...
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