Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi FTP LIST Timeout mit Delphi 11 und Indy TIdFTP (https://www.delphipraxis.net/209232-ftp-list-timeout-mit-delphi-11-und-indy-tidftp.html)

mjustin 13. Nov 2021 16:44

FTP LIST Timeout mit Delphi 11 und Indy TIdFTP
 
Besteht im Forum eventuell Interesse an 'gemeinsamer' Suche nach der Ursache für diesen Bug?

Ich habe leider kein Delphi 11. Nach Hinweisen im Github issue tracker tritt er auch mit 10.4 und Free Pascal auf.

* https://www.delphipraxis.net/1497486-post7.html
* https://github.com/IndySockets/Indy/issues/377

Testprojekt siehe unter https://github.com/IndySockets/Indy/...ment-932632490

mjustin 13. Nov 2021 17:17

AW: FTP LIST Timeout mit Delphi 11 und Indy TIdFTP
 
Mit Free Pascal 3.2.0 konnte ich den Bug reproduzieren.

Die Exception wird meistens in Zeile 2134 in unit IdFTP ausgelöst:

Code:
            if LReadList.ContainsSocket(LDataSocket) then
            begin
              LPortSv.Listen(0);
              Self.GetResponse([125, 150, 154]); <--------------

Die Exception wird manchmal auch bereits kurz davor, in Zeile 2128, ausgelöst:

Code:
          if not LSocketList.SelectReadList(LReadList, ListenTimeout) then begin
            raise EIdAcceptTimeout.Create(RSAcceptTimeout);
          end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz