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
481ee636
Commit
481ee636
authored
Nov 01, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Don't use MSG_PEEK.
As suggested by Jacek. Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b7cc627c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
channel.c
dlls/webservices/channel.c
+6
-12
No files found.
dlls/webservices/channel.c
View file @
481ee636
...
...
@@ -1150,27 +1150,21 @@ static void set_blocking( SOCKET socket, BOOL blocking )
ioctlsocket
(
socket
,
FIONBIO
,
&
state
);
}
static
int
sock_
peek
(
SOCKET
socket
)
static
int
sock_
recv
(
SOCKET
socket
,
char
*
buf
,
int
len
)
{
int
ret
;
char
byte
;
int
count
,
ret
;
set_blocking
(
socket
,
FALSE
);
ret
=
recv
(
socket
,
&
byte
,
1
,
MSG_PEEK
);
set_blocking
(
socket
,
TRUE
);
return
ret
;
}
if
((
ret
=
recv
(
socket
,
buf
,
len
,
0
))
<=
0
)
return
ret
;
len
-=
ret
;
static
int
sock_recv
(
SOCKET
socket
,
char
*
buf
,
int
len
)
{
int
count
,
ret
=
0
;
set_blocking
(
socket
,
FALSE
);
for
(;;)
{
if
((
count
=
recv
(
socket
,
buf
+
ret
,
len
,
0
))
<=
0
)
break
;
ret
+=
count
;
len
-=
count
;
if
(
sock_peek
(
socket
)
!=
1
)
break
;
}
set_blocking
(
socket
,
TRUE
);
return
ret
;
}
...
...
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