浏览器90s内会自动断开请求
$socket->header('Content-Type', 'text/event-stream; charset=utf-8');
$socket->header('Transfer-Encoding', 'chunked');
$socket->header('Cache-Control', 'no-cache');
浏览器请求超过90s,就会自动断开
返回下面错误:
net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK)
推荐文章: