|
|
|
@ -1994,15 +1994,19 @@ namespace WebSocketSharp
|
|
|
|
internal void InternalAccept ()
|
|
|
|
internal void InternalAccept ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (acceptHandshake ()) {
|
|
|
|
if (!acceptHandshake ())
|
|
|
|
_readyState = WebSocketState.Open;
|
|
|
|
return;
|
|
|
|
open ();
|
|
|
|
|
|
|
|
}
|
|
|
|
_readyState = WebSocketState.Open;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception ex) {
|
|
|
|
catch (Exception ex) {
|
|
|
|
_logger.Fatal (ex.ToString ());
|
|
|
|
_logger.Fatal (ex.ToString ());
|
|
|
|
fatal ("An exception has occurred while accepting.", ex);
|
|
|
|
fatal ("An exception has occurred while accepting.", ex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
open ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal bool Ping (byte[] frameAsBytes, TimeSpan timeout)
|
|
|
|
internal bool Ping (byte[] frameAsBytes, TimeSpan timeout)
|
|
|
|
|