Re: non-blocking socket close
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: non-blocking socket close




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: non-blocking socket close  
skaller


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-23-07 12:17 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:30 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register