Skip to content

Commit

Permalink
default readtimeout for connect
Browse files Browse the repository at this point in the history
  • Loading branch information
andremussche committed Mar 28, 2014
1 parent 72711f0 commit f6f958f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IdHTTPWebsocketClient.pas
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ procedure TIdHTTPWebsocketClient.InternalUpgradeToWebsocket(aRaiseException: Boo
sURL := Format('http://%s:%d/socket.io/1/', [Host, Port]);
strmResponse.Clear;

ReadTimeout := 5 * 1000;
//get initial handshake
Post(sURL, strmResponse, strmResponse);
if ResponseCode = 200 {OK} then
Expand Down

0 comments on commit f6f958f

Please sign in to comment.