PsychoTea / Oxide.Ext.Discord

Discord extension and integration
https://umod.org/extensions/discord
12 stars 26 forks source link

Losing connection freezes the server #47

Open Slydelix opened 5 years ago

Slydelix commented 5 years ago

Losing connection (DOS/DDOS attack) causes the server to lag/freeze (WebSockets/SocketListener.cs (SocketClosed method))

Whenever the connection is lost 2 messages are printed to console and new connection attempt is made = huge console spam = 1 fps whole time

Maybe adding some sort of delay before trying to reconnect may be a good idea

DDraBB commented 5 years ago

@Slydelix This is a known issue. He's working on a new build soon that should include a fix for this. Best thing to do if possible would be to close the discord connection if the network goes to shit and reopen once it's back to normal.