Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53535

Re: Python FTP timeout value not effective

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'subject:Python': 0.06; 'socket': 0.07; 'parameter': 0.09; 'python': 0.11; 'blocking': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'somehow.': 0.16; 'there?': 0.16; 'timeout': 0.16; 'wrote:': 0.18; 'properly': 0.19; 'working.': 0.19; 'work,': 0.20; 'command': 0.22; 'connected': 0.24; 'login': 0.25; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'host': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'sep': 0.31; 'period': 0.33; 'connection': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'consistent': 0.36; 'doing': 0.36; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'john': 0.61; 'anything.': 0.68; 'subject:effective': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=n9bJUMq/J78Z6SG26VMEGDvlyd67ktmVsRJQSjLhIN0=; b=PImdHN4H1Du1hd8yXM9whyc9z1MGchVIB7eXK7Bf3yT30FoCHfvijdR/XGPicr7Hh/ kV9iPpYJINYI2bEvgz9E7bDtGpxa1cNOXzuBdX90efr6GGDfWfLvWcc0llXsjeSsu3+U 24rwf18aiOrmbyjrUPaTY7E65Vb27mm/qN1GG3zlvsKFeSG4RGFo0KjvQtKWuqo98QlD F6HfbEplKoioBwMyBhzg4G395mS9xMsvcPRZDuLzHhfoSol2JF/0qKl2l09Cp43w0QN/ JP47AFNWSao064Vk4X9/e0+Q3j3y/sLnIT71ihKbfigJGZCjdc2AG9V6gW0F2xD6CLC1 kdLw==
MIME-Version 1.0
X-Received by 10.220.16.73 with SMTP id n9mr3726152vca.24.1378161333914; Mon, 02 Sep 2013 15:35:33 -0700 (PDT)
In-Reply-To <l02io1$kug$1@dont-email.me>
References <l02io1$kug$1@dont-email.me>
Date Tue, 3 Sep 2013 08:35:33 +1000
Subject Re: Python FTP timeout value not effective
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.520.1378161342.19984.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378161342 news.xs4all.nl 15942 [2001:888:2000:d::a6]:46471
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53535

Show key headers only | View raw


On Tue, Sep 3, 2013 at 3:43 AM, John Nagle <nagle@animats.com> wrote:
> "URLError: <urlopen error ftp error: [Errno 10060] A connection attempt
> failed because the connected party did not properly respond after a
> period of time, or established connection failed because connected host
> has failed to respond>"
>
> But in both cases, the command line FTP client will work, after a
> consistent 20 second delay before the login prompt.  So the
> Python timeout parameter isn't working.

That's a socket timeout, not an FTP timeout - that's why the timeout
parameter isn't doing anything. Are you sure it's just a 20-second
delay there? Check if there's something else blocking the connection
somehow. Can you telnet to that computer on port 21?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python FTP timeout value not effective John Nagle <nagle@animats.com> - 2013-09-02 10:43 -0700
  Re: Python FTP timeout value not effective David Bolen <db3l.net@gmail.com> - 2013-09-02 18:00 -0400
  Re: Python FTP timeout value not effective Chris Angelico <rosuav@gmail.com> - 2013-09-03 08:35 +1000
  Re: Python FTP timeout value not effective Terry Reedy <tjreedy@udel.edu> - 2013-09-02 20:04 -0400

csiph-web