• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/socket/stream.php
  • Класс: BitrixMainWebHttpSocketStream
  • Вызов: Stream::timedOut
public function timedOut(): bool
{
	if ($this->streamTimeout > 0)
	{
		if ($this->getMetadata('timed_out'))
		{
			return true;
		}

		if (time() > $this->lastTime + $this->streamTimeout)
		{
			return true;
		}
	}

	return false;
}