public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
* sending data on a socket followed by a close
@ 2003-08-28  0:35 Lee Chin
  2003-08-28  6:01 ` David S. Miller
  2003-08-29  5:03 ` Stephen Samuel
  0 siblings, 2 replies; 5+ messages in thread
From: Lee Chin @ 2003-08-28  0:35 UTC (permalink / raw)
  To: hahn, linux-newbie, linux-net

Hi,
I am trying to send 500K on a asynchronous socket and after I've written all my data, I want to close the socket.

So I send data in a loop, and between calls to "write" I select on the filedescriptor till it is writable again and send more data.

I continue this untill I have no more data to send.

At the end, after sending all my data, I "close" the socket.

However, the client sees a TCP RST packet and only receives partial data.

What am I doing wrong?  I though that the close would actually kill the socket after all the data has been sent

Thanks
Lee
-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-29  5:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28  0:35 sending data on a socket followed by a close Lee Chin
2003-08-28  6:01 ` David S. Miller
2003-08-27 19:14   ` Nagendra Singh Tomar
2003-08-29  5:03 ` Stephen Samuel
2003-08-29  5:44   ` Marco Cova

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox