Hi, Στις 8/6/2022 7:27 μ.μ., ο/η James Richters via fpc-pascal έγραψε:
Is there any way to specify a shorter timeout for FPConnect?
AFAIK, socket connect timeout is implemented in ssockets ( in TSocketStream ) not in sockets unit.
You can use the TInetSocket's class from ssockets unit ( this is what fphttpclient uses ) overloaded constructor with the aConnectTimeout parameter or if you want you can use the ConnectTimeout property before connect and you're ready to go ...
regards, -- Dimitrios Chr. Ioannidis _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal