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,931 of 14,669   
   Barry Margolin to SpreadTooThin   
   Re: Too soon to close socket...   
   18 Jun 09 22:04:23   
   
   234e8a83   
   From: barmar@alum.mit.edu   
      
   In article   
   ,   
    SpreadTooThin  wrote:   
      
   > I think I have an issue in my server where I transmit data and then   
   > close the socket.   
   > I think the data may not have been sent before the socket is closed   
   > and the client is not happy....   
   > Is there some way to make sure that the transmit queue is empty before   
   > closing the socket?   
   > Is there a sock option or something?   
      
   Unless the client is trying to send something back to you after you   
   closed the socket, you shouldn't have to do anything.  The FIN that   
   indicates the end of transmission is not sent until after the last data   
   segment.   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- 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