Home > Back-end >  High marks for the FTP
High marks for the FTP

Time:09-17

Delphi version: Delphi7
Components: IdFTP
The FTP server: Serv -u
6.3
Symptoms: when the file is bigger, the network speed is slow of
IdFTP1. Put (order. FullFileName, order FileName);
Process does not return, card here still, WorkEnd has triggered success

Try the following method does not address:
1, in the event of an WorkEnd Abort; Can lead to incomplete file upload
2, dynamically create IdHttp components failed to solve the problem



Great god gives give directions genuflect is begged!


solve WeChat Lucky Money served after!!!!!!

CodePudding user response:


CodePudding user response:

The file is bigger, under the condition of the network speed is slow
IdFTP1. Put (order. FullFileName, order FileName);
Stuck in here, because the file is not complete the transfer,

Suggestion:
1, through the thread operation;
2, thread add timing, timeout automatically prompt and exit,

CodePudding user response:

refer to the second floor lyhoo163 response:
file is bigger, the network speed is slow of
IdFTP1. Put (order. FullFileName, order FileName);
Stuck in here, because the file is not complete the transfer,

Suggestion:
1, through the thread operation;
2, thread add timing, timeout automatically prompt and exit,


That's not to another thread with him?
I try to use thread operation to see see!!

CodePudding user response:

PUT in the thread in 30 gb of files, didn't encounter this problem, on the other hand, not in the thread, card interface feeling no one can bear

CodePudding user response:

Use ics ftpclient, indy in LAN can work, public will be stuck

CodePudding user response:

If your programming, server and client, write your own, so form a complete set of controls, should have no problem,

CodePudding user response:

reference 5 floor bwsoft1 reply:
with ics ftpclient, indy in LAN can work, the public would have card


Indy the whole architecture is based on the blocking mode (standard BSD sockets model), must use multithreading, the design of indy also considering this problem, there is a TIdAntiFreeze components, can prevent interface gets stuck, simply drag one on the main form, what all don't write,
  • Related