Jeg har en '.exe' fil på en FTP server som fylder 1GB, når jeg prøver at hente den kommer jeg kun til 687MB, så kommer den ikke videre. Sidst kom den op med en besked som hedder: "socket error #10054 connection reset by peer" hvad kan jeg gøre for at få hentet hele filen uden fejl?
Mød TrackMan og Veo på Computerworld Cloud & AI Festival og hør, hvordan tech ændrer måden, vi træner og udvikler talent – fra skolebold til The Masters.
Hvis du klikker på din IdFtp komponent og derefter kigger i Object Inspectoren, så vil du se at der er en egenskab, som kaldes Passive. Denne står som standard til False, prøv at sætte den = True. og prøv at lave din download igen og se om den stadigvæk fejler.
Dette er et copy/paste fra Online hjælpen (Indy Socket Version 10.1.1)
Declaration property Passive: boolean; Summary Indicates the FTP data channel connection method. Description Passive is a Boolean property that indicates how the data channel connection for a File Transfer Protocol session is established. Passive is used during processing for both the Get and the Put methods to determine the FTP protocol exchange required to establish the data channel for the data transfer operation.
When Passive is True, the FTP server will listen for the FTP client to connect on a data port specified in the response to the FTP PASV or EPSV commands. EPSV is used when UsingExtDataPort contains True.
Active connections (or when Passive is set to False) indicates that the FTP server will open the connection for the data channel. In other words, the FTP client will listen for the server to open a connection for the data channel. The server is notified using the FTP PORT or EPRT commands. EPRT is used when UsingExtDataPort contains True.
Please note that some proxy configurations require PORT transfers, and some FTP servers do not support PASV transfers. Consult your network administrator for details on using FTP in your network environment.
The default value for Passive is Id_TIdFTP_Passive, as assigned during initialization of the component. Passive is also reset to the default value in ReInitialize.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.