简体   繁体   English

如果客户端发送连接关闭标头,服务器可以响应有效负载吗?

[英]If client sends connection close header could server to resonse with payload?

I am testing my proxy server and have got a problem with connection close header from the client.我正在测试我的代理服务器,但客户端的连接关闭标头出现问题。 If I try to response from the server with identity transfer-encoding it's limited with 390 bytes.如果我尝试使用身份传输编码从服务器响应,则它被限制为 390 个字节。 After reading wireshark I decided that the my problem came from the limits of the tcp.reassembled.length and 390 payload is matches for the 512 of tcp.reassembled.length.阅读wireshark后,我决定我的问题来自tcp.reassembled.length的限制,390有效载荷与tcp.reassembled.length的512匹配。 Chunked responses doesn't work at all.分块响应根本不起作用。

As I understand, if the client sends connection-close header the server should answer with only one packet and the sending payload is an undefined behaviour?据我了解,如果客户端发送连接关闭标头,服务器应该只回答一个数据包,并且发送有效负载是一种未定义的行为?

"As I understand, if the client sends connection-close header the server should answer with only one packet and the sending payload is an undefined behaviour?" “据我所知,如果客户端发送连接关闭标头,服务器应该只回答一个数据包,并且发送有效负载是一种未定义的行为?”

Not, it means that the server should send the full response and then close the connection.不是,这意味着服务器应该发送完整的响应,然后关闭连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM