On Mon 10/14/2002-08:50:08PM -0400, Christopher Weimann wrote: > > On Tue 10/15/2002-12:17:49AM +0100, Ian Dowse wrote: > > > > Is the code in question correctly initialising the variable that > > the `addrlen' parameter points to before calling accept? It looks > > as if this might be the problem in the PR you mention. I mean that > > the code should look like > > > > sin_len = sizeof(sin); > > s = accept(servsock, (struct sockaddr *)&sin, &sin_len); > > > > where `sin_len' is reset to the correct length before calling > > accept() each time. I think sin_len may be reset to 0 when an error > > occurs, but otherwise you would get away with not resetting it. > > > > I think you have it. I checked and the code in question has the > same problem as the PR code, sin_len is not being reset to the proper > value before each call to accept(). I will put this change in and > sometime tommorow ( once the box gets some traffic ) I will know if > this has fixed it. I'm betting it will. >
This is definately fixed now. It has been running all day with no problems. Thanks again Ian. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message