});
final String base = "" + port;
bind("Httpconnector-" + port, httpConnServer);
bind("HttpconnectorPool-" + port, httpConnServer.cpool);
IOConnector io = httpConnServer.getIOConnector();
int ioLevel = 0;
while (io != null) {
bind("IOConnector-" + (ioLevel++) + "-" + base, io);
if (io instanceof SocketConnector) {
bind("NioThread-" + base,
((SocketConnector) io).getSelector());
}
io = io.getNet();
}
httpConnServer.cpool.setEvents(new HttpConnectionPool.HttpConnectionPoolEvents() {
@Override
public void closedConnection(RemoteServer host, HttpConnection con) {