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

Added WebSocket.ConnectTimeout

Open myrup opened this issue 10 years ago • 8 comments

myrup avatar Mar 23 '15 14:03 myrup

I also really need this. Could you please merge?

porsager avatar Dec 16 '15 10:12 porsager

With your modifications in websocket-sharp/HttpBase.cs, timeout is never assigned to and will always have its initial value false. You could remove the variable and the conditional that checks the variable.

eslindsey avatar May 10 '17 05:05 eslindsey

ws.Connect() are waiting forever, can you please merge this? @sta

Nyconing avatar Dec 17 '18 08:12 Nyconing

@sta +1 for this merge please. I have a check looking for an active USB or WebSocket connection, and it's painful to have to wait around for .Connect() or .ConnectAsync() to timeout before I get a "Closed" response. I want to be able to set .Connect() to only try for like 3 seconds then move on to check my next available connection, or loop back around.

nickbarrantes avatar Feb 14 '20 18:02 nickbarrantes

I also need this feature. I am working with a state machine. @sta +1.

Icaro-Lima avatar Oct 03 '20 22:10 Icaro-Lima

+1 I'd really appreciate this feature

Flexba avatar May 18 '21 20:05 Flexba

@sta is there any particular reason for this not to be merged? (Apart from the fact that this is now 6 years old)

Winter avatar Sep 21 '21 22:09 Winter