• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/http/socket/handler.php
  • Класс: BitrixMainWebHttpSocketHandler
  • Вызов: Handler::write
protected function write(string $data, string $error)
{
	try
	{
		$result = $this->socket->write($data);
	}
	catch (RuntimeException $e)
	{
		throw new HttpNetworkException($this->request, $error);
	}

	if ($this->socket->timedOut())
	{
		throw new HttpNetworkException($this->request, 'Stream writing timeout has been reached.');
	}

	return $result;
}