websocket-sharp
websocket-sharp copied to clipboard
Slow timeout (up to 25 minutes) if the server goes away
I'm using ws-sharp in a background Xamarin service on Android connecting to a Windows PC (also ws-sharp) but if the Windows PC goes away (crash, etc) without telling the client to disconnect it'll take up to 25 minutes before it eventually throws a SocketException and "No route to host"
I've got WaitTime set to 1 minute, but is there any way to entirely mitigate this? It's a receive timeout rather than a send timeout