From 5e082e2961324a9dd62977af511483d914a6c6fe Mon Sep 17 00:00:00 2001 From: noisyfox Date: Sat, 17 Sep 2016 15:12:48 +1000 Subject: [PATCH] Fix comment Signed-off-by: noisyfox --- shadowsocks-csharp/Util/Sockets/WrappedSocket.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/shadowsocks-csharp/Util/Sockets/WrappedSocket.cs b/shadowsocks-csharp/Util/Sockets/WrappedSocket.cs index 93a5f7a6..85971ced 100644 --- a/shadowsocks-csharp/Util/Sockets/WrappedSocket.cs +++ b/shadowsocks-csharp/Util/Sockets/WrappedSocket.cs @@ -12,17 +12,14 @@ namespace Shadowsocks.Util.Sockets * If the server address is host name, then it may have both ipv4 and ipv6 address * after resolving. The main idea is we don't want to resolve and choose the address * by ourself. Instead, Socket.ConnectAsync() do handle this thing internally by trying - * each address and returning an established socket connection. Such approach solves - * two problem: - * 1. Async DNS resolving. - * 2. + * each address and returning an established socket connection. */ public class WrappedSocket { public EndPoint LocalEndPoint => _activeSocket?.LocalEndPoint; + // Only used during connection and close, so it won't cost too much. private SpinLock _socketSyncLock = new SpinLock(); - // Only used during connection and close, so it won't cost too much. private volatile bool _disposed; private bool Connected => _activeSocket != null;