disconnect does not set suicide flag?

This commit is contained in:
斟酌 鵬兄 2015-07-29 12:03:47 +08:00
parent e10c108efe
commit 70bee4d5fb

View File

@ -11,7 +11,7 @@ function server500( response, e )
{ {
response.statusCode = 500; response.statusCode = 500;
response.setHeader( 'Content-Type', 'text/plain' ); response.setHeader( 'Content-Type', 'text/plain' );
response.end( e.message ); response.end( e.message || e );
} }
function serverHandle( server, request, response, rHandle ) function serverHandle( server, request, response, rHandle )
@ -31,7 +31,7 @@ function serverHandle( server, request, response, rHandle )
server.close(); server.close();
GLOBAL.X_SERVER_CLUSTER.worker.disconnect(); GLOBAL.X_SERVER_CLUSTER.worker.destroy();
server500( response, e ); server500( response, e );
} }