Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Products
/
VSTT-Plugins
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d3bc1be6
...
d3bc1be6db2211b3a5071081ba09583783d12cc1
authored
2018-04-20 21:12:02 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix in SSL Session Cache Disabled
Small performance fix.
1 parent
c2cc16a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
LIL_VSTT_Plugins/LoadTestPlugins.cs
LIL_VSTT_Plugins/LoadTestPlugins.cs
View file @
d3bc1be
...
...
@@ -55,7 +55,7 @@ namespace LIL_VSTT_Plugins
System
.
Reflection
.
Assembly
asm
=
System
.
Reflection
.
Assembly
.
GetAssembly
(
typeof
(
System
.
Net
.
Security
.
SslStream
));
Type
t
=
asm
.
GetType
(
"System.Net.Security.SslSessionsCache"
);
System
.
Reflection
.
FieldInfo
f
=
t
.
GetField
(
"s_CachedCreds"
,
System
.
Reflection
.
BindingFlags
.
NonPublic
|
System
.
Reflection
.
BindingFlags
.
Static
);
f
.
SetValue
(
null
,
new
ZeroHashtable
());
f
.
SetValue
(
null
,
new
ZeroHashtable
(
32
));
}
void
undoIt
()
...
...
@@ -69,6 +69,8 @@ namespace LIL_VSTT_Plugins
public
class
ZeroHashtable
:
System
.
Collections
.
Hashtable
{
public
ZeroHashtable
(
int
capacity
)
:
base
(
capacity
)
{
}
public
override
int
Count
{
get
{
if
(
base
.
Count
%
32
==
0
)
this
.
Clear
();
return
0
;
}
...
...
Please
register
or
sign in
to post a comment