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
f8f2273b
Commit
f8f2273b
authored
May 25, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added INTERNET_OPTION_SETTINGS_CHANGED semi-stub implementation.
parent
95c1b74f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
6 deletions
+17
-6
http.c
dlls/wininet/http.c
+4
-4
internet.c
dlls/wininet/internet.c
+6
-1
internet.h
dlls/wininet/internet.h
+7
-1
No files found.
dlls/wininet/http.c
View file @
f8f2273b
...
...
@@ -285,7 +285,7 @@ static server_t *get_server(const WCHAR *name, INTERNET_PORT port)
return
server
;
}
BOOL
collect_connections
(
BOOL
collect_all
)
BOOL
collect_connections
(
collect_type_t
collect_type
)
{
netconn_t
*
netconn
,
*
netconn_safe
;
server_t
*
server
,
*
server_safe
;
...
...
@@ -296,7 +296,7 @@ BOOL collect_connections(BOOL collect_all)
LIST_FOR_EACH_ENTRY_SAFE
(
server
,
server_safe
,
&
connection_pool
,
server_t
,
entry
)
{
LIST_FOR_EACH_ENTRY_SAFE
(
netconn
,
netconn_safe
,
&
server
->
conn_pool
,
netconn_t
,
pool_entry
)
{
if
(
collect_
all
||
netconn
->
keep_until
<
now
)
{
if
(
collect_
type
>
COLLECT_TIMEOUT
||
netconn
->
keep_until
<
now
)
{
TRACE
(
"freeing %p
\n
"
,
netconn
);
list_remove
(
&
netconn
->
pool_entry
);
free_netconn
(
netconn
);
...
...
@@ -305,7 +305,7 @@ BOOL collect_connections(BOOL collect_all)
}
}
if
(
collect_
all
)
{
if
(
collect_
type
==
COLLECT_CLEANUP
)
{
list_remove
(
&
server
->
entry
);
list_init
(
&
server
->
entry
);
server_release
(
server
);
...
...
@@ -325,7 +325,7 @@ static DWORD WINAPI collect_connections_proc(void *arg)
EnterCriticalSection
(
&
connection_pool_cs
);
remaining_conns
=
collect_connections
(
FALSE
);
remaining_conns
=
collect_connections
(
COLLECT_TIMEOUT
);
if
(
!
remaining_conns
)
collector_running
=
FALSE
;
...
...
dlls/wininet/internet.c
View file @
f8f2273b
...
...
@@ -309,7 +309,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
break
;
case
DLL_PROCESS_DETACH
:
collect_connections
(
TRUE
);
collect_connections
(
COLLECT_CLEANUP
);
NETCON_unload
();
URLCacheContainers_DeleteAll
();
...
...
@@ -2635,6 +2635,11 @@ static DWORD set_global_option(DWORD option, void *buf, DWORD size)
connect_timeout
=
*
(
ULONG
*
)
buf
;
return
ERROR_SUCCESS
;
case
INTERNET_OPTION_SETTINGS_CHANGED
:
FIXME
(
"INTERNETOPTION_SETTINGS_CHANGED semi-stub
\n
"
);
collect_connections
(
COLLECT_CONNECTIONS
);
return
ERROR_SUCCESS
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
...
...
dlls/wininet/internet.h
View file @
f8f2273b
...
...
@@ -70,7 +70,13 @@ typedef struct {
void
server_addref
(
server_t
*
)
DECLSPEC_HIDDEN
;
void
server_release
(
server_t
*
)
DECLSPEC_HIDDEN
;
BOOL
collect_connections
(
BOOL
)
DECLSPEC_HIDDEN
;
typedef
enum
{
COLLECT_TIMEOUT
,
COLLECT_CONNECTIONS
,
COLLECT_CLEANUP
}
collect_type_t
;
BOOL
collect_connections
(
collect_type_t
)
DECLSPEC_HIDDEN
;
/* used for netconnection.c stuff */
typedef
struct
...
...
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