0

My C# WebSocket server app (with around ~100-200 clients) randomly freezes for 5-10 minutes. Then unfreezes itself. It happens only on Linux while running on Mono. On Windows everything works fine.

I've found a very old thread with the same problem & solution, but I'm not sure how exactly I should edit the Socket.cs on Mono to fix this. (Mono app freezes at non-blocking socket send).

If somebody could help me I'd be very thankful =)

  • 2
    check how many sockets are open/established at the moment your server hangs: https://serverfault.com/a/997199/186958 also a bit old but maybe worth reading as a starting point https://stackoverflow.com/questions/410616 to get an idea where to look for. – rene May 02 '21 at 10:13
  • Instead of running on Mono, migrate to .NET Core and see what you get there. – Lex Li May 02 '21 at 14:49
  • I can confirm that migrating to .NET Core was the solution for me.. Everything works fine now even under Linux – Robin Skadra Aug 20 '21 at 18:02

0 Answers0