[Modify] Polish it

This commit is contained in:
sta 2017-07-14 16:26:42 +09:00
parent ed12ccaf21
commit 6a4b027e0a

View File

@ -866,8 +866,9 @@ namespace WebSocketSharp.Server
ThreadPool.QueueUserWorkItem (
state => {
try {
var ctx =
cl.GetWebSocketContext (null, _secure, _sslConfigInUse, _log);
var ctx = new TcpListenerWebSocketContext (
cl, null, _secure, _sslConfigInUse, _log
);
if (!ctx.Authenticate (_authSchemes, _realmInUse, _userCredFinder))
return;
@ -875,7 +876,7 @@ namespace WebSocketSharp.Server
processRequest (ctx);
}
catch (Exception ex) {
_log.Fatal (ex.Message);
_log.Error (ex.Message);
_log.Debug (ex.ToString ());
cl.Close ();
@ -885,7 +886,7 @@ namespace WebSocketSharp.Server
}
catch (SocketException ex) {
if (_state == ServerState.ShuttingDown) {
_log.Info ("The receiving is stopped.");
_log.Info ("The underlying listener is stopped.");
break;
}