Package com.nhncorp.mods.socket.io.impl

Examples of com.nhncorp.mods.socket.io.impl.HandshakeData


      return false;
    }

    try {
      long newTime = Long.parseLong(tValue);
      HandshakeData handshakeData = manager.handshakeData(clientData.getId());

      if(handshakeData == null) {
        return false;
      }

      long oldTime = handshakeData.getLastRequestTime();

      if (oldTime != 0 && oldTime - newTime > REQUEST_TTL) {
        // 먼저 요청보다 TTL 시간보다 더 이전이라면  잘못된 요청으로 무시한다.
        log.debug("[Http] Invalid request, 'it's 't' parameter value(" + newTime
            + ") is older then the last time(" + oldTime + ")', uri=" + request.uri());
        return false;
      }
      handshakeData.setLastRequestTime(newTime);
    } catch (NumberFormatException nfe) {
      log.debug("[Http] Invalid request. 'it doesn't have 't' parameter', uri=" + request.uri());
      return false;
    }
View Full Code Here

TOP

Related Classes of com.nhncorp.mods.socket.io.impl.HandshakeData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.