a TCP stack question
a TCP stack question
- Subject: a TCP stack question
- From: Sanjay Arora <email@hidden>
- Date: Wed, 15 Sep 2004 13:03:58 +0530
Hi,
I am trying to figure out a problem arising in my server implementing HTTP.
Basically I do a POST to my server through a browser with some post data.
I found that the response from the server is broken and does not reach the
client in complete.
I tried looking at it and found that the cause is the extra CRLF generated
by browser after the request body.
These extra chars (generated randomly) are not read by the server and when
the server is done sending the response
and calls close on the socket,
the underlying TCP layer will generate a Reset packet which causes the
browser to stop accepting the response.
I want to confirm if this also the behavior in MacOSX, that if there's a
data in receive queue in TCP stack and
the socket is closed, the underlying TCP will generate a RST packet to
client. I am using CFSockets in my server.
I checked it up in other OS (Win), its generating the RST packet.
Any clue in this regard would be helpful.
Regards
Sanjay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden