diff options
author | Jens Geyer <jensg@apache.org> | 2021-04-02 12:18:15 +0200 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2021-04-02 19:05:59 +0200 |
commit | ef0cb01abed2558a2a15ed6675e9156d765ff81e (patch) | |
tree | 8114141d3a4211b5c8cb4a1e6ac325384bb820c8 /test/netstd | |
parent | 20a86d68e9f6ac8774308bd491f93d476b10203d (diff) | |
download | thrift-ef0cb01abed2558a2a15ed6675e9156d765ff81e.tar.gz |
THRIFT-5391 Named pipes transport hardening
Client: netstd
Patch: Jens Geyer
This closes #2367
Diffstat (limited to 'test/netstd')
-rw-r--r-- | test/netstd/Server/TestServer.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/netstd/Server/TestServer.cs b/test/netstd/Server/TestServer.cs index 5c99099de..bec9fae44 100644 --- a/test/netstd/Server/TestServer.cs +++ b/test/netstd/Server/TestServer.cs @@ -149,7 +149,10 @@ namespace ThriftTest public class TestServer { - public static int _clientID = -1; + #pragma warning disable CA2211 + public static int _clientID = -1; // use with Interlocked only! + #pragma warning restore CA2211 + private static readonly TConfiguration Configuration = null; // or new TConfiguration() if needed public delegate void TestLogDelegate(string msg, params object[] values); @@ -556,7 +559,7 @@ namespace ThriftTest { case TransportChoice.NamedPipe: Debug.Assert(param.pipe != null); - trans = new TNamedPipeServerTransport(param.pipe, Configuration); + trans = new TNamedPipeServerTransport(param.pipe, Configuration, NamedPipeClientFlags.OnlyLocalClients); break; |