[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-03-13 Thread Nathan Cox

Nathan Cox added the comment:

I have this issue intermittently with a server that I connect to, but the issue 
(at least for me) seems to be the minBytesPerSecond configuration triggering a 
remote disconnect of the connection.

--
nosy: +Nathan Cox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-03-09 Thread required field

Changes by required field requiredfield...@gmail.com:


--
nosy: +required field

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-01-30 Thread Lukasz Szybalski

Lukasz Szybalski added the comment:

Hello,
We are having issues usign ftplib for implicit TLS over port 990

I'm referencing a solution that states 

For the implicit FTP TLS/SSL(defualt port 990), our client program must build 
a TLS/SSL connection right after the socket is created. But python's class 
FTP_TLS doesn't reload the connect function from class FTP. We need to fix it:



http://stackoverflow.com/questions/12164470/python-ftp-tls-connection-issue

{{{
#ImplicityTLS.py
from ftplib import FTP_TLS
import socket
import ssl

class tyFTP(FTP_TLS):
def __init__(self, host='', user='', passwd='', acct='', keyfile=None, 
certfile=None, timeout=60):
FTP_TLS.__init__(self, host, user, passwd, acct, keyfile, certfile, 
timeout)
def connect(self, host='', port=0, timeout=-999):
if host != '':
self.host = host
if port  0:
self.port = port
if timeout != -999:
self.timeout = timeout

try: 
self.sock = socket.create_connection((self.host, self.port), 
self.timeout)
self.af = self.sock.family
self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, 
ssl_version=ssl.PROTOCOL_TLSv1)
self.file = self.sock.makefile('rb')
self.welcome = self.getresp()
except Exception as e:
print e
return self.welcome
}}}


Then from my main application I did this:

{{{
from ImplicityTLS import tyFTP
server = tyFTP()
server.connect(host=x, port=990)
server.login(user=, passwd=f)
server.prot_p()
}}}

--
nosy: +lszyba1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

Have you tried to see what happens in passive mode (use: ftps.set_pasv(True))?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-25 Thread Jeremy Brock

Jeremy Brock added the comment:

Hello Giampaolo,

It is the same timeout in PASV with Prot_P, please see attached documentation.  
Something I did not mention before is that the file being written shows up on 
the server but I can't view it because it is being used by another process. 
When the timeout occurs the file disappears - see attached images.

~Jeremy

--
Added file: http://bugs.python.org/file27715/FTP7.5 Issues Documentation - 
PASV.zip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-24 Thread Jeremy Brock

New submission from Jeremy Brock:

Recently I have been working on a project to utilize the new FTP_TLS library 
from ftplib in Python 2.7.3.  What I found is that no matter what I try, when 
prot_p() is called prior to transferring files to 2008 Server R2 running 
FTP7.5, the python client connection no longer is able to transfer files to the 
FTP7.5 server resulting in *get* '425 Data channel timed out due to not meeting 
the minimum bandwidth requirement.\r\n' .

I have reproduced this in Python 2.7.3 on HPUX and Windows.

I am able to successfully transfer files using winscp and Filezilla to the 
same FTP7.5 server using FTPes with Prot_P in Active Mode.

--
components: Library (Lib)
files: FTP7.5 Issues Documentation.zip
messages: 173719
nosy: Jeremy.Brock
priority: normal
severity: normal
status: open
title: FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file27706/FTP7.5 Issues Documentation.zip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2012-10-24 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +giampaolo.rodola

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16318
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com