Ok, so need to see on the server side.
--
http://mail.python.org/mailman/listinfo/python-list
Sumit Acharya wrote:
> Hi Steve,
> this is the trace I have got:-
> Traceback (most recent call last):
> File "sumit1.py", line 39, in ?
> ftp.connect(host,port)
> File "C:\programs\packages\python24\lib\ftplib.py", line 129, in
> connect
> raise socket.error, msg
> socket.error: (10060
Hi Steve,
this is the trace I have got:-
Traceback (most recent call last):
File "sumit1.py", line 39, in ?
ftp.connect(host,port)
File "C:\programs\packages\python24\lib\ftplib.py", line 129, in
connect
raise socket.error, msg
socket.error: (10060, 'Operation timed out')
--
http://ma
Hi Steve,
Thanks, I have started the run without try and except block, I will
update with the findings tomm.
Please keep this thread on for you so that I can get the solution
--
http://mail.python.org/mailman/listinfo/python-list
Sumit Acharya wrote:
> After 20 seconds only.
>
Of course I now realise there's no default timeout on sockets anyway, so
that likely wasn't the problem.
Which statement is failing?
You would actually get much more information without the try/except
clauses, as they are stopping the traceback f
After 20 seconds only.
--
http://mail.python.org/mailman/listinfo/python-list
Sumit Acharya wrote:
> Hi Steve,
>
> It didnt help, i am getting same error.
>
After 20 seconds or 60?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
--
http://ma
Hi Steve,
It didnt help, i am getting same error.
--
http://mail.python.org/mailman/listinfo/python-list
Sumit Acharya wrote:
> can u please modify the script that i have posted with your suggestion,
> it will help me to a certain extent.
>
> Thanks
>
from ftplib import FTP
import time
import sys
import socket
socket.setdefaulttimeout(60)
host = sys.argv[1]
port = sys.argv[2]
for x in range(1000):
can u please modify the script that i have posted with your suggestion,
it will help me to a certain extent.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Sumit Acharya wrote:
> I am using following script to connect to the server and i try the
> connection for 1000 times. Some times it succeeds for all the 1000
> times,but some times it fails with error:-
> 10060, 'Operation timed out'. When it fails with the abover error, it
> seems timed out time
11 matches
Mail list logo