mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 00:19:38 +02:00
TInetSocket connect timeout support under 1 second fix.
(cherry picked from commit f20b6275563a6051ea91ab2f1b1521dd287be83f)
This commit is contained in:
parent
c13517634f
commit
33f5da686e
@ -1289,7 +1289,7 @@ var
|
||||
begin
|
||||
locTimeVal := PTimeVal(ATimeVPtr);
|
||||
locFDS := PFDSet(AFDSPtr);
|
||||
locTimeVal^.tv_usec := 0;
|
||||
locTimeVal^.tv_usec := (FConnectTimeout mod 1000) * 1000;
|
||||
locTimeVal^.tv_sec := FConnectTimeout div 1000;
|
||||
Res:=-1;
|
||||
{$ifdef unix}
|
||||
|
Loading…
Reference in New Issue
Block a user