On 13-May-09, at 3:15 PM, Christian Biere wrote: > Matthew Lye wrote: >> On 13-May-09, at 1:46 AM, Christian Biere wrote: >>> Do you get this warning for every incoming connection or just for >>> some? > >> Just for some, albeit fairly frequently. (That said, it's happening >> with every call to getpeername$UNIX2003.) > > You could call getpeername() unconditonally after each successful > accept() to ensure it's not just a problem with getpeername(). > However, > getpeername() wouldn't be called if accept() had provided an address > as it should.
Under these circumstances, getpeername() does set a plausible address. It's setting 0.0.0.0 and failing only when called after accept(). Looking at the warnings in the code, there should be a different warning if getpeername() ever succeeds when accept() fails; this does not occur. I'll check the network stuff next session. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ gtk-gnutella-devel mailing list gtk-gnutella-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel