diff --git a/docs/Couchbase.shfbproj b/docs/Couchbase.shfbproj index bc3dd4532..2ccfb8258 100644 --- a/docs/Couchbase.shfbproj +++ b/docs/Couchbase.shfbproj @@ -19,8 +19,8 @@ en-US - - + + 2.0.0.0 2 False @@ -77,6 +77,9 @@ C:\Users\borrrden\.nuget\packages\Remotion.Linq\2.1.1\lib\netstandard1.0\Remotion.Linq.dll + + C:\Users\borrrden\.nuget\packages\system.net.networkinformation\4.3.0\ref\netstandard1.3\System.Net.NetworkInformation.dll + C:\Users\borrrden\.nuget\packages\system.net.websockets\4.3.0\ref\netstandard1.3\System.Net.WebSockets.dll diff --git a/packaging/nuget/couchbase-lite.nuspec b/packaging/nuget/couchbase-lite.nuspec index ab0a883ec..e95aa5e67 100644 --- a/packaging/nuget/couchbase-lite.nuspec +++ b/packaging/nuget/couchbase-lite.nuspec @@ -18,6 +18,13 @@ couchbase couchbase-mobile couchbase-lite sync database mobile netcore xamarin ios android windows linux mac osx nosql en-US + + + + + + + diff --git a/src/Couchbase.Lite/API/DI/ISslStream.cs b/src/Couchbase.Lite/API/DI/ISslStream.cs index 23d3021e0..a385aed52 100644 --- a/src/Couchbase.Lite/API/DI/ISslStream.cs +++ b/src/Couchbase.Lite/API/DI/ISslStream.cs @@ -37,10 +37,11 @@ public interface ISslStreamFactory : IInjectable #region Public Methods /// - /// Creates a stream for writing TLS encrypted data over TCP + /// Creates a stream for reading and writing + /// TLS encrypted data over TCP /// /// The underlying - /// + /// The instantiated stream ready for communication ISslStream Create(Stream inner); #endregion diff --git a/src/Couchbase.Lite/Sync/WebSocketWrapper.cs b/src/Couchbase.Lite/Sync/WebSocketWrapper.cs index 078dd8a56..81c4b0f1f 100644 --- a/src/Couchbase.Lite/Sync/WebSocketWrapper.cs +++ b/src/Couchbase.Lite/Sync/WebSocketWrapper.cs @@ -109,17 +109,18 @@ public void CompletedReceive(ulong byteCount) public unsafe void Start() { - if (_client != null) { - return; - } - - _client = new TcpClient(AddressFamily.InterNetwork | AddressFamily.InterNetworkV6) { - SendTimeout = (int)IdleTimeout.TotalMilliseconds, - ReceiveTimeout = (int) IdleTimeout.TotalMilliseconds - }; - _queue.DispatchAsync(() => { + if (_client != null) { + return; + } + + _client = new TcpClient(AddressFamily.InterNetwork | AddressFamily.InterNetworkV6) + { + SendTimeout = (int)IdleTimeout.TotalMilliseconds, + ReceiveTimeout = (int)IdleTimeout.TotalMilliseconds + }; + var cts = new CancellationTokenSource(); cts.CancelAfter(ConnectTimeout); _client.ConnectAsync(_logic.UrlRequest.Host, _logic.UrlRequest.Port).ContinueWith(t =>