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
35587e56
Commit
35587e56
authored
Mar 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Added INTERNET_OPTION_MAX_CONNS_PER_SERVER and…
wininet: Added INTERNET_OPTION_MAX_CONNS_PER_SERVER and INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER options setting implementation.
parent
a59204a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
14 deletions
+30
-14
internet.c
dlls/wininet/internet.c
+30
-14
No files found.
dlls/wininet/internet.c
View file @
35587e56
...
...
@@ -108,6 +108,8 @@ typedef struct
LPWSTR
proxyBypass
;
}
proxyinfo_t
;
static
ULONG
max_conns
=
2
,
max_1_0_conns
=
4
;
static
const
WCHAR
szInternetSettings
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'M'
,
'i'
,
'c'
,
'r'
,
'o'
,
's'
,
'o'
,
'f'
,
't'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'd'
,
'o'
,
'w'
,
's'
,
'\\'
,
'C'
,
'u'
,
'r'
,
'r'
,
'e'
,
'n'
,
't'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'\\'
,
...
...
@@ -2336,7 +2338,7 @@ DWORD INET_QueryOption(object_header_t *hdr, DWORD option, void *buffer, DWORD *
if
(
*
size
<
sizeof
(
ULONG
))
return
ERROR_INSUFFICIENT_BUFFER
;
*
(
ULONG
*
)
buffer
=
2
;
*
(
ULONG
*
)
buffer
=
max_conns
;
*
size
=
sizeof
(
ULONG
);
return
ERROR_SUCCESS
;
...
...
@@ -2347,7 +2349,7 @@ DWORD INET_QueryOption(object_header_t *hdr, DWORD option, void *buffer, DWORD *
if
(
*
size
<
sizeof
(
ULONG
))
return
ERROR_INSUFFICIENT_BUFFER
;
*
(
ULONG
*
)
buffer
=
4
;
*
(
ULONG
*
)
buffer
=
max_1_0_conns
;
*
size
=
sizeof
(
ULONG
);
return
ERROR_SUCCESS
;
...
...
@@ -2535,6 +2537,10 @@ DWORD INET_SetOption(object_header_t *hdr, DWORD option, void *buf, DWORD size)
case
INTERNET_OPTION_CALLBACK
:
WARN
(
"Not settable option %u
\n
"
,
option
);
return
ERROR_INTERNET_OPTION_NOT_SETTABLE
;
case
INTERNET_OPTION_MAX_CONNS_PER_SERVER
:
case
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
:
WARN
(
"Called on global option %u
\n
"
,
option
);
return
ERROR_INTERNET_INVALID_OPERATION
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
...
...
@@ -2546,6 +2552,28 @@ static DWORD set_global_option(DWORD option, void *buf, DWORD size)
case
INTERNET_OPTION_CALLBACK
:
WARN
(
"Not global option %u
\n
"
,
option
);
return
ERROR_INTERNET_INCORRECT_HANDLE_TYPE
;
case
INTERNET_OPTION_MAX_CONNS_PER_SERVER
:
TRACE
(
"INTERNET_OPTION_MAX_CONNS_PER_SERVER
\n
"
);
if
(
size
!=
sizeof
(
max_conns
))
return
ERROR_INTERNET_BAD_OPTION_LENGTH
;
if
(
!*
(
ULONG
*
)
buf
)
return
ERROR_BAD_ARGUMENTS
;
max_conns
=
*
(
ULONG
*
)
buf
;
return
ERROR_SUCCESS
;
case
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
:
TRACE
(
"INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
\n
"
);
if
(
size
!=
sizeof
(
max_1_0_conns
))
return
ERROR_INTERNET_BAD_OPTION_LENGTH
;
if
(
!*
(
ULONG
*
)
buf
)
return
ERROR_BAD_ARGUMENTS
;
max_1_0_conns
=
*
(
ULONG
*
)
buf
;
return
ERROR_SUCCESS
;
}
return
ERROR_INTERNET_INVALID_OPTION
;
...
...
@@ -2677,18 +2705,6 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
FIXME
(
"Option INTERNET_OPTION_DATA_RECEIVE_TIMEOUT (%d): STUB
\n
"
,
receivetimeout
);
}
break
;
case
INTERNET_OPTION_MAX_CONNS_PER_SERVER
:
{
ULONG
conns
=
*
(
ULONG
*
)
lpBuffer
;
FIXME
(
"Option INTERNET_OPTION_MAX_CONNS_PER_SERVER (%d): STUB
\n
"
,
conns
);
}
break
;
case
INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
:
{
ULONG
conns
=
*
(
ULONG
*
)
lpBuffer
;
FIXME
(
"Option INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER (%d): STUB
\n
"
,
conns
);
}
break
;
case
INTERNET_OPTION_RESET_URLCACHE_SESSION
:
FIXME
(
"Option INTERNET_OPTION_RESET_URLCACHE_SESSION: STUB
\n
"
);
break
;
...
...
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