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
9d3fda00
Commit
9d3fda00
authored
Jun 19, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Cache blocking state in netconn_t.
parent
eef89b50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
internet.h
dlls/wininet/internet.h
+1
-0
netconnection.c
dlls/wininet/netconnection.c
+5
-2
No files found.
dlls/wininet/internet.h
View file @
9d3fda00
...
...
@@ -68,6 +68,7 @@ typedef struct
{
int
socket
;
BOOL
secure
;
BOOL
is_blocking
;
CtxtHandle
ssl_ctx
;
SecPkgContext_StreamSizes
ssl_sizes
;
server_t
*
server
;
...
...
dlls/wininet/netconnection.c
View file @
9d3fda00
...
...
@@ -282,8 +282,11 @@ void init_winsock(void)
static
void
set_socket_blocking
(
netconn_t
*
conn
,
BOOL
is_blocking
)
{
ULONG
arg
=
!
is_blocking
;
ioctlsocket
(
conn
->
socket
,
FIONBIO
,
&
arg
);
if
(
conn
->
is_blocking
!=
is_blocking
)
{
ULONG
arg
=
!
is_blocking
;
ioctlsocket
(
conn
->
socket
,
FIONBIO
,
&
arg
);
}
conn
->
is_blocking
=
is_blocking
;
}
static
DWORD
create_netconn_socket
(
server_t
*
server
,
netconn_t
*
netconn
,
DWORD
timeout
)
...
...
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