websocket-sharp icon indicating copy to clipboard operation
websocket-sharp copied to clipboard

Slow timeout (up to 25 minutes) if the server goes away

Open BenWoodford opened this issue 3 years ago • 0 comments

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

BenWoodford avatar Mar 21 '22 16:03 BenWoodford