diff --git a/IdHTTPWebsocketClient.pas b/IdHTTPWebsocketClient.pas index 448f4b0..cb0406d 100644 --- a/IdHTTPWebsocketClient.pas +++ b/IdHTTPWebsocketClient.pas @@ -542,6 +542,7 @@ begin 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