walkor / workerman

An asynchronous event driven PHP socket framework. Supports HTTP, Websocket, SSL and other custom protocols.
http://www.workerman.net
MIT License
11.12k stars 2.26k forks source link

fix:修复header等于Transfer-Encoding:Chunk 状态下Connection等于close时,输出流未给出chu… #1000

Closed hepeichun closed 8 months ago

hepeichun commented 8 months ago

修复header等于Transfer-Encoding:Chunk 状态下 Connection等于close时,输出流未给出chunk结束标识的问题。

walkor commented 8 months ago

HTTP 头中 Connection: close 的含义是整个请求的响应结束后关闭连接。 chunk 的请求是分段的,不能只发一段就强制关闭连接

hepeichun commented 8 months ago

明白了,那可能还是需要在助手函数增加一个函数处理该问题