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 13,178 of 14,669   
   Dan Lanciani to Barry Margolin   
   Re: 2 processes listening on the same ip   
   13 Nov 09 02:08:53   
   
   From: ddl@danlan.*com   
      
   In article ,   
   barmar@alum.mit.edu (Barry Margolin) writes:   
      
   | I'm not sure how this scenario is possible.  Putty should get an   
   | EADDRINUSE error when it tries to bind the socket.  SO_REUSEADDR   
   | shouldn't override this case (it allows you to bind a socket while there   
   | are established sockets using the port, but it shouldn't allow you to   
   | bind a socket while there's a listening socket).   
      
   SO_REUSEPORT, however, will allow totally duplicate bindings on   
   "modern" systems.  One of the early rounds of multicast enhancements   
   for the BSD stack changed the semantics of tcb matching (and thus of   
   SO_REUSEADDR) to allow for totally duplicate bindings.  This broke   
   things.  IIRC, SO_REUSEPORT showed up as the alternative with slightly   
   different semantics from the "modern" version.  There was so much   
   confusion that some applications may just use both in hopes of getting   
   the least restrictive behavior.   
      
   				Dan Lanciani   
   				ddl@danlan.*com   
      
   --- 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