@SuppressWarnings("InfiniteLoopStatement")
    private void startAccept() {

		try {
			while (true) {
				Socket accept = serverSocket.accept();
                // Work around JVM deadlock ... https://community.oracle.com/message/10989561#10989561
                accept.setSoLinger(true, 1);
                executorService.execute(new SocketHandler(accept));
			}
		} catch (IOException ioe) {
			executorService.shutdown();
		}
	}
Start the server accept process. This method is non-blocking.
src/test/java/com/notnoop/apns/AbstractApnsServerSocket.java