ftplib: Software caused connection abort, how I solved it

M

Mad Sweeney

My program polls FTP servers at intervals for jobs to process.
Its running as a service on Windows server 2000 or 2003 :-(.
About 13% of times the retrbinary and less often the nlst calls would fail
with
"Software caused connection abort".
I could find no relevant solution on the intertubes.
I added blocksize=2048 to the retrbinary call which lowerd the failures to
about 2% but that was still unsatisfactory for me.
When I added:
socket.setdefaulttimeout(60)
to the setup stuff in order to solve a different problem, the connection
abort errors went away completely.
Even when I restored retrbinary to use the default blocksize it still
worked.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top