Pass cancellation token to AcceptTcpClientAsync() in net6
Client: netstd
Patch: Jens Geyer
diff --git a/lib/netstd/Thrift/Transport/Server/TTlsServerSocketTransport.cs b/lib/netstd/Thrift/Transport/Server/TTlsServerSocketTransport.cs
index 77abcae..2b7f80c 100644
--- a/lib/netstd/Thrift/Transport/Server/TTlsServerSocketTransport.cs
+++ b/lib/netstd/Thrift/Transport/Server/TTlsServerSocketTransport.cs
@@ -139,7 +139,11 @@
 
             try
             {
+                #if NET6_0_OR_GREATER
+                var client = await _server.AcceptTcpClientAsync(cancellationToken);
+                #else
                 var client = await _server.AcceptTcpClientAsync();
+                #endif
                 client.SendTimeout = client.ReceiveTimeout = _clientTimeout;
 
                 //wrap the client in an SSL Socket passing in the SSL cert