summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuaki Sukegawa <nsuke@apache.org>2016-09-04 17:46:53 +0900
committerNobuaki Sukegawa <nsuke@apache.org>2016-09-26 02:40:51 +0900
commit900569c442742a1cb727111574dff26a7401d8c3 (patch)
treeb5c16b017149e890a1cca3fb97aefaa175dc7fee
parent346e23149573dc00da5eb7f415057b0266230010 (diff)
downloadthrift-900569c442742a1cb727111574dff26a7401d8c3.tar.gz
THRIFT-3919 C# TTLSServerSocket does not use clientTimeout
This closes #1078
-rw-r--r--lib/csharp/src/Transport/TTLSServerSocket.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/csharp/src/Transport/TTLSServerSocket.cs b/lib/csharp/src/Transport/TTLSServerSocket.cs
index 99f21ca0c..d6e69eb2b 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;