开发者

Confusion over TCP FIN =1 flag and HTTP Session End

Ok, So I guess I got things the wrong way, does a HTTP session end with the arrival of FIN = 1 or is there something else going on that makes a client application know that there is no more data to receive? I am analyzing the network stream over the wire usin开发者_高级运维g WireShark, and at the moment, I am having trouble understanding this.

Thanks for the help!


In most cases you should see "Content-Length: ..." HTTP header telling you how much data (in bytes) follows after "\r\n\r\n" sequence. Said sequence marks end of headers and beginning HTTP message body.

http://en.wikipedia.org/wiki/HTTP_persistent_connection

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜