Pure-FTPD parallel upload issue

0

i am copying approx 300 10MB files from another server to my server. everything works just fine but i tried to run parallel thread so that i can complete it fast i got surprised as another file will only uploaded when first upload will free the route of upload.

i opened 5 pages in mozilla browser in new tab and all 5 tab has taken new file name from those 300 file name and i clicked on submit and it was showing submitted but the file will get uploaded only when one file completes and redirect to success page then the uploading of second file will start. i tried to increase the various settings in whm like max file upload size, in php configuration editor changed the size as well but nothing worked. then i changed the various settings in Pure-FTPD. as i am uploading files using php file upload i think pure ftp will be used and changed the configuration to this then also no success.

   Allow Anonymous Uploads              no

   Maximum Connections                 150

    Maximum Connections Per IP Address    20

any guide?? i tried changing several mysql parameters also but i am really not able to upload more tha

wayenjoy

Posted 2012-11-15T16:08:29.307

Reputation:

What is your programming-related issue? What is whm? How is it related to PHP? – None – 2012-11-15T16:13:17.707

php file upload? if you're using php file uploads, then that's NOT ftp. you're probably running into locked session issues, causing each file upload to run serially, instead of in parallel. – None – 2012-11-15T16:13:21.653

Perhaps you could post some code? – Sammitch – 2012-11-15T16:13:25.163

@MarcB i think you have pointed out correctly . how to sort out that issue if it is being locked – None – 2012-11-15T16:15:36.747

@Sammitch its simple file copy script in php – None – 2012-11-15T16:16:00.037

@wayenjoy oh gee-wiz, that's some super-helpful information, champ. Let me just fire up the ol' telepathy so I can find the problem in your code. – Sammitch – 2012-11-15T16:18:44.650

@Sammitch marcb has correctly pointed out the issue i think.its locked sesssion issue.how to solve that issue can u plz tell – None – 2012-11-15T16:21:33.767

Easier to just do: scp -r /path/to/files user@yourhost.com:/path/to/put/files/ – None – 2012-11-15T16:22:14.653

@wayenjoy no. it's a secret. just like your code. – Sammitch – 2012-11-15T16:24:21.017

@LawrenceCherone i want to know the reason why it is happening – None – 2012-11-15T16:24:25.507

@wayenjoy: put session_write_close() into the script that the file is being uploaded to. that'll release the lock on the session file, allowing parallel requests. – None – 2012-11-15T16:28:07.827

No answers