Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener crashes when receiving improper messages #590

Closed
borrrden opened this issue Feb 15, 2016 · 3 comments
Closed

Listener crashes when receiving improper messages #590

borrrden opened this issue Feb 15, 2016 · 3 comments
Labels
Milestone

Comments

@borrrden
Copy link
Member

As reported in Issue #433

System.IO.IOException was unhandled by user code
  HResult=-2146232800
  Message=The handshake failed due to an unexpected packet format.
  Source=System
  StackTrace:
       at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result)
       at System.Net.Security.SslStream.EndAuthenticateAsServer(IAsyncResult asyncResult)
       at WebSocketSharp.Net.HttpConnection.FinishAuth(IAsyncResult result) in C:\Users\S401309\Developer\couchbase-lite-net\src\Couchbase.Lite.Shared\vendor\websocket-sharp\websocket-sharp\Net\HttpConnection.cs:line 172
       at System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
       at System.Net.Security.SslState.FinishHandshake(Exception e, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest)
       at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result)
       at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes)
       at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)
  InnerException: 
@borrrden borrrden changed the title SSL on Windows does throws exception without HTTP Auth SSL on Windows throws exception without HTTP Auth Feb 16, 2016
@zgramana zgramana added the bug label Feb 20, 2016
@zgramana zgramana added this to the 1.3 milestone Feb 20, 2016
@borrrden
Copy link
Member Author

So far not able to reproduce this

@borrrden
Copy link
Member Author

Note: Possible repro case -> https://github.com/jamiltz/ListenerSSLExample/

@borrrden borrrden changed the title SSL on Windows throws exception without HTTP Auth Listener crashes when receiving improper messages Feb 20, 2016
@borrrden
Copy link
Member Author

Update to this. Basic Auth was not the issue, but rather trying to connect to a listener via HTTP when it is listening on HTTPS (and possible vice-versa). Once I confirm it should be a quick fix.

@borrrden borrrden modified the milestones: 1.2.2, 1.3 May 17, 2016
@borrrden borrrden modified the milestones: 1.3, 1.2.2 May 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants