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
6db935a6
Commit
6db935a6
authored
Jun 15, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use a helper to send data and take care of EINTR.
parent
bdc0099e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
net.c
dlls/winhttp/net.c
+14
-3
No files found.
dlls/winhttp/net.c
View file @
6db935a6
...
...
@@ -139,6 +139,17 @@ static int sock_get_error( int err )
return
err
;
}
static
int
sock_send
(
int
fd
,
const
void
*
msg
,
size_t
len
,
int
flags
)
{
int
ret
;
do
{
ret
=
send
(
fd
,
msg
,
len
,
flags
);
}
while
(
ret
==
-
1
&&
errno
==
EINTR
);
return
ret
;
}
static
DWORD
netconn_verify_cert
(
PCCERT_CONTEXT
cert
,
WCHAR
*
server
,
DWORD
security_flags
)
{
HCERTSTORE
store
=
cert
->
hCertStore
;
...
...
@@ -403,7 +414,7 @@ BOOL netconn_secure_connect( netconn_t *conn, WCHAR *hostname )
TRACE
(
"sending %u bytes
\n
"
,
out_buf
.
cbBuffer
);
size
=
send
(
conn
->
socket
,
out_buf
.
pvBuffer
,
out_buf
.
cbBuffer
,
0
);
size
=
s
ock_s
end
(
conn
->
socket
,
out_buf
.
pvBuffer
,
out_buf
.
cbBuffer
,
0
);
if
(
size
!=
out_buf
.
cbBuffer
)
{
ERR
(
"send failed
\n
"
);
res
=
ERROR_WINHTTP_SECURE_CHANNEL_ERROR
;
...
...
@@ -524,7 +535,7 @@ static BOOL send_ssl_chunk(netconn_t *conn, const void *msg, size_t size)
return
FALSE
;
}
if
(
send
(
conn
->
socket
,
conn
->
ssl_buf
,
bufs
[
0
].
cbBuffer
+
bufs
[
1
].
cbBuffer
+
bufs
[
2
].
cbBuffer
,
0
)
<
1
)
{
if
(
s
ock_s
end
(
conn
->
socket
,
conn
->
ssl_buf
,
bufs
[
0
].
cbBuffer
+
bufs
[
1
].
cbBuffer
+
bufs
[
2
].
cbBuffer
,
0
)
<
1
)
{
WARN
(
"send failed
\n
"
);
return
FALSE
;
}
...
...
@@ -554,7 +565,7 @@ BOOL netconn_send( netconn_t *conn, const void *msg, size_t len, int *sent )
return
TRUE
;
}
if
((
*
sent
=
send
(
conn
->
socket
,
msg
,
len
,
0
))
==
-
1
)
if
((
*
sent
=
s
ock_s
end
(
conn
->
socket
,
msg
,
len
,
0
))
==
-
1
)
{
set_last_error
(
sock_get_error
(
errno
)
);
return
FALSE
;
...
...
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