Recent

Author Topic: Synapse bulk upload issue  (Read 263 times)

aducom

  • Full Member
  • ***
  • Posts: 122
    • http://www.aducom.com
Synapse bulk upload issue
« on: October 18, 2019, 09:19:34 pm »
In my application I generate a few hundred php files. I try to upload them using Synapse. Except that the upload is not as fast as a standard client like FileZilla, the application runs well for around 80 files and then terminates due to a boolean false in the sendfile. I tried different settings, active, passive, binary etc. but no success. Does someone have had the same experience or can point me to some error? I tried getlasterror, but it gives a 0. I can't figure out how to trap the socket error (if there is any).

The structure is simple:

- read files from folder
- open ftp
- for each file
-    sendfile
- close ftp

Thaddy

  • Hero Member
  • *****
  • Posts: 9190
Re: Synapse bulk upload issue
« Reply #1 on: October 18, 2019, 09:23:25 pm »
Reduce the local stack size to 2048 instead of the default compiler settings.
also related to equus asinus.

aducom

  • Full Member
  • ***
  • Posts: 122
    • http://www.aducom.com
Re: Synapse bulk upload issue
« Reply #2 on: October 18, 2019, 10:05:11 pm »
I changed the stack size on the compilation and linking section in project options and set it to 2048.
But there is no difference in behavior unfortunately.

aducom

  • Full Member
  • ***
  • Posts: 122
    • http://www.aducom.com
Re: Synapse bulk upload issue
« Reply #3 on: October 18, 2019, 11:52:22 pm »
Ok, if the upload fails then just logout, do a login and retry. Then it goes well for again around 80 files etc. Don't know why, but if this does the job. Still I wonder why there is such a dramatic performance difference between Synapse and Filezilla.