user349026
user349026

Reputation:

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 using WireShark, and at the moment, I am having trouble understanding this.

Thanks for the help!

Upvotes: 1

Views: 887

Answers (1)

cababunga
cababunga

Reputation: 3114

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

Upvotes: 2

Related Questions