예제 #1
0
파일: Events.php 프로젝트: panlatent/aurora
 public function onSocketReadWaitTimeoutTimer()
 {
     $timestamp = $this->bind->getTimestamp();
     if ($socketLastReadUT = $timestamp->get(ServerTimestampType::SocketLastRead)) {
         $interval = TimestampMarker::interval($socketLastReadUT);
         if ($interval >= $this->bind->getConfig()->socket_last_wait_timeout) {
             $this->bind->declareClose();
         }
     }
 }