booloo@lll-crg.llnl.gov (Mark Boolootian) (11/30/90)
I've got a meeting in a couple minutes so I'm going to try and ask this quickly. If you setsockopt() with SO_REUSEADDR, as I understand it, you should be able to issue a bind() for a ip/port address that is already in use. However, it appears that it is still possible for bind() to return the error EADDRINUSE (for example, look at routine getdatasock() in ftpd.c where they have a loop that retries the bind() several times before giving up, all the while checking for EADDRINUSE). What I'd like to know is why this happens, in lieu of the call to setsockopt(). Thanks in advance. Email would be nice but I'll wade through stuff if need be. regards, mb booloo@lll-crg.llnl.gov