Date: Wed, 31 Mar 1999 13:54:13 +0200 From: Graham Wheeler <gram@cdsec.com> To: Ladavac Marino <mladavac@metropolitan.at>, hackers@freebsd.org Subject: Re: select() on UDP socket returns ECONNREFUSED Message-ID: <37020CE5.477F888D@cdsec.com> References: <97A8CA5BF490D211A94F0000F6C2E55D097583@s-lmh-wi-900.corpnet.at>
next in thread | previous in thread | raw e-mail | index | archive | help
Ladavac Marino wrote: > > Subject: select() on UDP socket returns ECONNREFUSED > > > > Hi all > > > > Does anyone know what this means? The source code for select is buried > > in some non-obvious place so I haven't been able to check it directly. > [ML] I don't parse this. > > Do you mean, select returns -1 and sets errno to ECONNREFUSED? Oops (hides head in embarassment). I just checked the code (which wasn't mine) and saw that the error gets logged if the select returns something other than 1 and errno isn't EINTR. Which means that this is happening when the select times out and returns zero. Turns out the person who wrote the code erroneously assumed that select() would return errno==EINTR if it timed out. -- Dr Graham Wheeler E-mail: gram@cdsec.com Citadel Data Security Phone: +27(21)423-6065/6/7 Firewalls/Virtual Private Networks Fax: +27(21)24-3656 Internet/Intranet Network Specialists Data Security Products WWW: http://www.cdsec.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37020CE5.477F888D>