/** * 获取有效的FD * @param int $fd 客户端唯一标识符 */ protected function getFD($fd) { if ($fd <= 0) { $fd = $this->request->fd(); } return $fd; }