TcpServer handles the main thread control. HttpServer just needs to create the right kind of request when a new thread is spawned. See Also: com.caucho.server.TcpServer