Align end-point behaviours. Should then be easier to apply async chnages.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@998446
13f79535-47bb-0310-9956-
ffa450edef68
}
}
- // Accept the next incoming connection from the server socket
+ if (!running) {
+ break;
+ }
try {
+ // Accept the next incoming connection from the server socket
Socket socket = serverSocketFactory.acceptSocket(serverSocket);
serverSocketFactory.initSocket(socket);
// Hand this socket off to an appropriate processor
*/
@Override
public void run() {
+
// Loop until we receive a shutdown command
while (running) {
+
// Loop if endpoint is paused
while (paused && running) {
try {
// Ignore
}
}
+
+ if (!running) {
+ break;
+ }
try {
// Accept the next incoming connection from the server socket
SocketChannel socket = serverSock.accept();