home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.protocols.tcp-ip      TCP and IP network protocols.      14,669 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 12,974 of 14,669   
   Rick Jones to David Schwartz   
   Re: send hangs and doesnt return   
   27 Jul 09 21:14:18   
   
   587904c8   
   From: rick.jones2@hp.com   
      
   David Schwartz  wrote:   
   > A blocking 'send' call will block until the operation either   
   > succeeds or fails. If you want to use blocking socket operations and   
   > don't want to block forever, you need implement some kind of   
   > timeout. A common way is to have another thread periodically check   
   > for connections that have not had activity for sufficiently long and   
   > issue a 'shutdown' on their sockets. This will cause the 'send' to   
   > unblock.   
      
   Well...  perhaps many, perhaps most stacks, but I'm still leary, even   
   this day, on counting on such threaded behaviour in a sockets   
   implementation.   
      
   rick jones   
   --   
   oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates   
   these opinions are mine, all mine; HP might not want them anyway... :)   
   feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca