mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 11:45:32 +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
|
begin
|
||||||
locTimeVal := PTimeVal(ATimeVPtr);
|
locTimeVal := PTimeVal(ATimeVPtr);
|
||||||
locFDS := PFDSet(AFDSPtr);
|
locFDS := PFDSet(AFDSPtr);
|
||||||
locTimeVal^.tv_usec := 0;
|
locTimeVal^.tv_usec := (FConnectTimeout mod 1000) * 1000;
|
||||||
locTimeVal^.tv_sec := FConnectTimeout div 1000;
|
locTimeVal^.tv_sec := FConnectTimeout div 1000;
|
||||||
Res:=-1;
|
Res:=-1;
|
||||||
{$ifdef unix}
|
{$ifdef unix}
|
||||||
|
Loading…
Reference in New Issue
Block a user