TInetSocket connect timeout.
Original Reporter info from Mantis: d.ioannidis @d.ioannidis
-
Reporter name: Dimitrios Chr. Ioannidis
Original Reporter info from Mantis: d.ioannidis @d.ioannidis
- Reporter name: Dimitrios Chr. Ioannidis
Description:
Here is a patch which ia adds support for timeout during connection.
Implemented with setting the socket non-blocking before connect and detecting if the socket is writable after the connect call. If the socket is not writable then a ESocketError seConnectTimeout is raised. Added a ConnectTimeout property to TSocketStream.
Tested in Windows 10, Debian 9 both x86_64.
Additional information:
Attached also is a patch for TFPHTTPClient for using the ConnectTimeout property and a test project.