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
95c1b74f
Commit
95c1b74f
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: Store server_t on the list until clean up.
parent
f3dd75d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
http.c
dlls/wininet/http.c
+9
-12
internet.h
dlls/wininet/internet.h
+0
-1
No files found.
dlls/wininet/http.c
View file @
95c1b74f
...
...
@@ -242,8 +242,10 @@ void server_release(server_t *server)
if
(
InterlockedDecrement
(
&
server
->
ref
))
return
;
if
(
!
server
->
ref
)
server
->
keep_until
=
GetTickCount64
()
+
COLLECT_TIME
;
list_remove
(
&
server
->
entry
);
heap_free
(
server
->
name
);
heap_free
(
server
);
}
static
server_t
*
get_server
(
const
WCHAR
*
name
,
INTERNET_PORT
port
)
...
...
@@ -264,7 +266,7 @@ static server_t *get_server(const WCHAR *name, INTERNET_PORT port)
server
=
heap_alloc
(
sizeof
(
*
server
));
if
(
server
)
{
server
->
addr_len
=
0
;
server
->
ref
=
1
;
server
->
ref
=
2
;
/* list reference and return */
server
->
port
=
port
;
server
->
security_flags
=
0
;
list_init
(
&
server
->
conn_pool
);
...
...
@@ -303,15 +305,10 @@ BOOL collect_connections(BOOL collect_all)
}
}
if
(
!
server
->
ref
)
{
if
(
collect_all
||
server
->
keep_until
<
now
)
{
list_remove
(
&
server
->
entry
);
heap_free
(
server
->
name
);
heap_free
(
server
);
}
else
{
remaining
=
TRUE
;
}
if
(
collect_all
)
{
list_remove
(
&
server
->
entry
);
list_init
(
&
server
->
entry
);
server_release
(
server
);
}
}
...
...
dlls/wininet/internet.h
View file @
95c1b74f
...
...
@@ -61,7 +61,6 @@ typedef struct {
char
addr_str
[
INET6_ADDRSTRLEN
];
LONG
ref
;
DWORD64
keep_until
;
DWORD
security_flags
;
...
...
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