jselbie / stunserver

Version 1.2. This is the source code to STUNTMAN - an open source STUN server and client code by john selbie. Compliant with the latest RFCs including 5389, 5769, and 5780. Also includes backwards compatibility for RFC 3489. Compiles on Linux, MacOS, BSD, Solaris, and Win32 with Cygwin. Windows binaries avaialble from www.stunprotocol.org.
http://www.stunprotocol.org
Apache License 2.0
1.44k stars 349 forks source link

What do error codes mean, e.g. errno=11 #65

Open 1260900 opened 1 month ago

1260900 commented 1 month ago

recv on socket 14 returns -1 (errno=11) socket 14: 1 ( IPOLLING_READ ) recv on socket 14 returns 20 (errno=0)

jselbie commented 1 month ago

Can you share your command line and operating system?

I'm 90% certain this is expected and normal for TCP mode. errno 11 is legacy EAGAIN, which means the socket didn't have any more immediate data on it. This is a benign error - really just a verbose info message. Not an actual error.