You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ns...@apache.org on 2016/09/25 17:41:19 UTC

thrift git commit: THRIFT-3919 C# TTLSServerSocket does not use clientTimeout

Repository: thrift
Updated Branches:
  refs/heads/master 346e23149 -> 900569c44


THRIFT-3919 C# TTLSServerSocket does not use clientTimeout

This closes #1078


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/900569c4
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/900569c4
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/900569c4

Branch: refs/heads/master
Commit: 900569c442742a1cb727111574dff26a7401d8c3
Parents: 346e231
Author: Nobuaki Sukegawa <ns...@apache.org>
Authored: Sun Sep 4 17:46:53 2016 +0900
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Mon Sep 26 02:40:51 2016 +0900

----------------------------------------------------------------------
 lib/csharp/src/Transport/TTLSServerSocket.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/900569c4/lib/csharp/src/Transport/TTLSServerSocket.cs
----------------------------------------------------------------------
diff --git a/lib/csharp/src/Transport/TTLSServerSocket.cs b/lib/csharp/src/Transport/TTLSServerSocket.cs
index 99f21ca..d6e69eb 100644
--- a/lib/csharp/src/Transport/TTLSServerSocket.cs
+++ b/lib/csharp/src/Transport/TTLSServerSocket.cs
@@ -43,7 +43,7 @@ namespace Thrift.Transport
         /// <summary>
         /// Timeout for the created server socket
         /// </summary>
-        private int clientTimeout = 0;
+        private readonly int clientTimeout;
 
         /// <summary>
         /// Whether or not to wrap new TSocket connections in buffers
@@ -117,6 +117,7 @@ namespace Thrift.Transport
             }
 
             this.port = port;
+            this.clientTimeout = clientTimeout;
             this.serverCertificate = certificate;
             this.useBufferedSockets = useBufferedSockets;
             this.clientCertValidator = clientCertValidator;