[New-bugs-announce] [issue36570] ftplib timeouts for misconfigured server

Dāvis report at bugs.python.org
Tue Apr 9 03:57:09 EDT 2019


New submission from Dāvis <davispuh at gmail.com>:

It's not uncommon to encounter FTP servers which are misconfigured and return unroutable host IP (eg. internal IP) when using passive mode

See: https://superuser.com/a/1195591

Most FTP clients such as FileZilla and WinSCP use a workaround when they encounter such servers and connect to user's specified host instead.

> Command: PASV
> Answer: 227 Entering Passive Mode (10,250,250,25,219,237).
> Status:  Server sent passive reply with unroutable address. Using server address instead.

Currently Python's ftplib simply timeouts for these and doesn't work.

----------
messages: 339712
nosy: davispuh, giampaolo.rodola
priority: normal
severity: normal
status: open
title: ftplib timeouts for misconfigured server
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36570>
_______________________________________


More information about the New-bugs-announce mailing list