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
2418e828
Commit
2418e828
authored
Jul 21, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Jul 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use connection's timeout rather than default timeout when reading a line.
parent
80100334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
net.c
dlls/winhttp/net.c
+9
-2
No files found.
dlls/winhttp/net.c
View file @
2418e828
...
...
@@ -519,9 +519,16 @@ BOOL netconn_get_next_line( netconn_t *conn, char *buffer, DWORD *buflen )
pfd
.
events
=
POLLIN
;
while
(
recvd
<
*
buflen
)
{
if
(
poll
(
&
pfd
,
1
,
DEFAULT_RECEIVE_TIMEOUT
*
1000
)
>
0
)
int
timeout
,
res
;
struct
timeval
tv
;
socklen_t
len
=
sizeof
(
tv
);
if
((
res
=
getsockopt
(
conn
->
socket
,
SOL_SOCKET
,
SO_RCVTIMEO
,
(
void
*
)
&
tv
,
&
len
)
!=
-
1
))
timeout
=
tv
.
tv_sec
*
1000
+
tv
.
tv_usec
/
1000
;
else
timeout
=
-
1
;
if
(
poll
(
&
pfd
,
1
,
timeout
)
>
0
)
{
int
res
;
if
((
res
=
recv
(
conn
->
socket
,
&
buffer
[
recvd
],
1
,
0
))
<=
0
)
{
if
(
res
==
-
1
)
set_last_error
(
sock_get_error
(
errno
)
);
...
...
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