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
2276a81d
...
2276a81d502268ccb737393a525022de2ef68c53
authored
2018-04-23 15:02:31 +0200
by
Christian Gerdes
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Changed the way the ZeroHashtable works to prevent locking or concurrency issues.
1 parent
b3c9820c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
LIL_VSTT_Plugins/LoadTestPlugins.cs
LIL_VSTT_Plugins/LoadTestPlugins.cs
View file @
2276a81
...
...
@@ -75,7 +75,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
(
32
));
f
.
SetValue
(
null
,
new
ZeroHashtable
());
}
void
undoIt
()
...
...
@@ -89,12 +89,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
;
}
}
public
override
void
Add
(
object
key
,
object
value
)
{
return
;
}
public
override
object
this
[
object
key
]
{
get
{
return
null
;
}
set
{
return
;
}
}
}
/// <summary>
...
...
Please
register
or
sign in
to post a comment