public void run() {
while (running) {
try {
synchronized (sessions) {
for (IoSession session : sessions) {
RequestResponseManager requestResponseManager = (RequestResponseManager) session.getAttribute(RequestResponseManager.SESSION_KEY);
// can happen if we're called before the session has actual completed handshake with server..
if (requestResponseManager != null) {
requestResponseManager.checkForExpiredRequests();
}
}
}
}
catch (Exception e) {