couchbase / couchbase-lite-net

A lightweight, document-oriented (NoSQL), syncable database engine for .NET
http://developer.couchbase.com/mobile/
Apache License 2.0
437 stars 126 forks source link

Exception due to failed handshake #981

Closed raghusarangapani closed 6 years ago

raghusarangapani commented 6 years ago

Builds

.net 2.0.0-b0589, SG 2.0.0-814, CBS 5.5.0-1992

Test ran

pytest -s --mode=cc --server-version=5.5.0-1992 --sync-gateway-version=2.0.0-814 --liteserv-platform=net-msft --liteserv-host=192.168.33.21 --liteserv-port=55555  --xattrs --create-db-per-suite="test_db" --create-db-per-test=pull-test testsuites/CBLTester/CBL_Functional_tests/test_replication.py --liteserv-version=2.0.0-b0589 -k 'test_CBL_tombstone_doc[1000]' --skip-provisioning

Actual

Intermittently the .net test server app stops with an unhandled exception in Couchbase.Lite.Support.NetDesktop.dll

Call stack:

screen shot 2018-02-28 at 3 47 37 pm

Code:

screen shot 2018-02-28 at 3 46 51 pm

Local vars:

screen shot 2018-02-28 at 3 47 18 pm

borrrden commented 6 years ago

How does pytest know to set this up as wss instead of ws (i.e. how can I run this test with TLS)?

raghusarangapani commented 6 years ago

This is still work in progress in the feature/sg_ssl branch of mobile-testkit.

borrrden commented 6 years ago

The way to cause this exception is to connect to a non-TLS backend while attempting TLS. I have ensured that this is caught and reported.