コード例 #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();
         }
     }
 }