hikalkan / scs

TCP Server/Client Communication and RMI Framework
MIT License
225 stars 112 forks source link

Connection opens and immediately closes on Linux using .NET 5 #43

Open KrytenCoder opened 3 years ago

KrytenCoder commented 3 years ago

As the title suggests I am using Scs on a linux server with .NET 5 runtimes. When a connection opens, it immediately closes with a error "Resource temporarily unavailable".

I have fixed this by removing the code around the connection method in TcpHelper.cs which disables Blocking and then re-enables it again right after. This change works now with no noticeable side effects.

Could you explain why Blocking was disabled while connecting? Also could this cause issues later when I test with more connections?

gfazzola commented 11 months ago

in .net 6 with linux debian 11 it does not work. I've been investigating but I can't find how to fix it. MY BAD. Removing the code works. Just see if there are any side effects.