Unix Programming - Re: non-blocking socket close

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > April 2007 > Re: non-blocking socket close





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: non-blocking socket close
skaller

2007-04-22, 7:17 pm

On Sat, 21 Apr 2007 18:48:56 -0700, David Schwartz wrote:

> On Apr 21, 4:32 am, skaller <skal...@users.sf.net> wrote:
>
> Isn't this the default behavior when you call 'close' on a non-
> blocking socket?
>
> DS


Linux discards the internal buffer contents immediately.
That's not what I expected but it does seem to happen ;(

I have tried with non-blocking sockets and they do the
right thing, and I have got nice behaviour at the moment
by adding a 5 second delay between shutdown and close
on non-blocking sockets. But that is not very nice ;(


--
/home/skaller/.signature
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com