MirrorNetworking / Telepathy

Simple, message based, MMO Scale TCP networking in C#. And no magic.
MIT License
1.17k stars 136 forks source link

Do not set timeouts on listener #112

Closed imerr closed 3 years ago

imerr commented 3 years ago

On linux setting the recv timeout will cause the blocking Accept call to timeout with EACCEPT (which mono interprets as EWOULDBLOCK). See https://stackoverflow.com/questions/1917814/eagain-error-for-accept-on-blocking-socket/1918118#1918118 I'm not sure if the send/nodelay would cause any issues, but we set the timeouts on accepted sockets anyways, so this is unnecessary.

This fixes https://github.com/vis2k/Mirror/issues/2695