external/pyftpdlib.git
3 months agoupdate copyright + HISTORY master
g.rodola [Fri, 11 Apr 2014 22:13:10 +0000 (22:13 +0000)]
update copyright + HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1262 18f94993-622a-0410-868e-e94f534f3744

3 months agoupdate INSTALL, version and setup.py
g.rodola [Fri, 11 Apr 2014 22:08:12 +0000 (22:08 +0000)]
update INSTALL, version and setup.py

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1261 18f94993-622a-0410-868e-e94f534f3744

3 months agofix issue 282: add /dev/poll support for solaris
g.rodola [Fri, 11 Apr 2014 21:12:11 +0000 (21:12 +0000)]
fix issue 282: add /dev/poll support for solaris

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1260 18f94993-622a-0410-868e-e94f534f3744

3 months agolower INTERRUPTED_TRANSF_SIZE to try avoiding false positives + provide alias for...
g.rodola [Fri, 11 Apr 2014 19:17:13 +0000 (19:17 +0000)]
lower INTERRUPTED_TRANSF_SIZE to try avoiding false positives + provide alias for deprecate unittest method

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1259 18f94993-622a-0410-868e-e94f534f3744

3 months agolower FTP server data channel's buffer size so that we (hopefully) get less false...
g.rodola [Fri, 11 Apr 2014 19:12:29 +0000 (19:12 +0000)]
lower FTP server data channel's buffer size so that we (hopefully) get less false positives

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1258 18f94993-622a-0410-868e-e94f534f3744

3 months agoissue 285: take advantage of unittest2's addCleanup()
g.rodola [Fri, 11 Apr 2014 19:01:19 +0000 (19:01 +0000)]
issue 285: take advantage of unittest2's addCleanup()

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1257 18f94993-622a-0410-868e-e94f534f3744

3 months agoassertRaisesRegexp was deprecated in favour or assertRaisesRegex
g.rodola [Fri, 11 Apr 2014 18:44:09 +0000 (18:44 +0000)]
assertRaisesRegexp was deprecated in favour or assertRaisesRegex

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1256 18f94993-622a-0410-868e-e94f534f3744

3 months agofix 285: unittest2 migration
g.rodola [Fri, 11 Apr 2014 18:39:23 +0000 (18:39 +0000)]
fix 285: unittest2 migration

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1255 18f94993-622a-0410-868e-e94f534f3744

3 months agotests: provide better error messages when comparing file data
g.rodola [Fri, 11 Apr 2014 18:19:27 +0000 (18:19 +0000)]
tests: provide better error messages when comparing file data

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1254 18f94993-622a-0410-868e-e94f534f3744

3 months agogive the right CREDITS
g.rodola [Fri, 11 Apr 2014 17:27:14 +0000 (17:27 +0000)]
give the right CREDITS

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1253 18f94993-622a-0410-868e-e94f534f3744

3 months agoFTPS: add ability to load a certificate chain file
g.rodola [Fri, 11 Apr 2014 17:11:38 +0000 (17:11 +0000)]
FTPS: add ability to load a certificate chain file

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1252 18f94993-622a-0410-868e-e94f534f3744

3 months agorecofingure logging level during tests
g.rodola [Fri, 11 Apr 2014 17:00:22 +0000 (17:00 +0000)]
recofingure logging level during tests

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1251 18f94993-622a-0410-868e-e94f534f3744

3 months agofix issue 283: always use a single 'pyftpdlib' logger
g.rodola [Fri, 4 Apr 2014 13:10:40 +0000 (13:10 +0000)]
fix issue 283: always use a single 'pyftpdlib' logger

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1250 18f94993-622a-0410-868e-e94f534f3744

5 months agoupdate HISTORY
g.rodola [Thu, 6 Feb 2014 02:38:15 +0000 (02:38 +0000)]
update HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1248 18f94993-622a-0410-868e-e94f534f3744

5 months agoFix issue 280: (Python 2) unable to complete directory listing with invalid UTF8...
g.rodola [Tue, 4 Feb 2014 22:32:54 +0000 (22:32 +0000)]
Fix issue 280: (Python 2) unable to complete directory listing with invalid UTF8 characters. (patch by dn@devicenull.org)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1245 18f94993-622a-0410-868e-e94f534f3744

6 months agofix typo
g.rodola [Sun, 19 Jan 2014 11:44:10 +0000 (11:44 +0000)]
fix typo

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1244 18f94993-622a-0410-868e-e94f534f3744

6 months agoFix issue 261: TLS shutdown does not properly work on Windows.
g.rodola [Mon, 30 Dec 2013 11:46:07 +0000 (11:46 +0000)]
Fix issue 261: TLS shutdown does not properly work on Windows.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1243 18f94993-622a-0410-868e-e94f534f3744

6 months agopep8 + pyflakes
g.rodola [Mon, 30 Dec 2013 11:33:10 +0000 (11:33 +0000)]
pep8 + pyflakes

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1242 18f94993-622a-0410-868e-e94f534f3744

6 months agoFix issue 277: provide a make file also for Windows.
g.rodola [Mon, 30 Dec 2013 11:14:47 +0000 (11:14 +0000)]
Fix issue 277: provide a make file also for Windows.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1241 18f94993-622a-0410-868e-e94f534f3744

6 months agoadd makefile
g.rodola [Mon, 30 Dec 2013 10:45:50 +0000 (10:45 +0000)]
add makefile

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1240 18f94993-622a-0410-868e-e94f534f3744

7 months agopep8ify
g.rodola [Sun, 8 Dec 2013 21:40:25 +0000 (21:40 +0000)]
pep8ify

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1239 18f94993-622a-0410-868e-e94f534f3744

8 months agopep8ify
g.rodola [Tue, 26 Nov 2013 15:27:59 +0000 (15:27 +0000)]
pep8ify

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1238 18f94993-622a-0410-868e-e94f534f3744

8 months agopep8ify
g.rodola [Tue, 26 Nov 2013 14:11:59 +0000 (14:11 +0000)]
pep8ify

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1237 18f94993-622a-0410-868e-e94f534f3744

8 months agoupdate version
g.rodola [Thu, 7 Nov 2013 22:17:19 +0000 (22:17 +0000)]
update version

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1236 18f94993-622a-0410-868e-e94f534f3744

8 months agoupdate HISTORY
g.rodola [Wed, 6 Nov 2013 20:29:00 +0000 (20:29 +0000)]
update HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1235 18f94993-622a-0410-868e-e94f534f3744

8 months agofix issue 273: IOLoop.fileno() on BSD riases AttributeError
g.rodola [Wed, 6 Nov 2013 20:25:02 +0000 (20:25 +0000)]
fix issue 273: IOLoop.fileno() on BSD riases AttributeError

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1234 18f94993-622a-0410-868e-e94f534f3744

11 months agofix issue 270: add a new '--verbose' cmdline option which enables debug logging
g.rodola [Sat, 24 Aug 2013 17:48:45 +0000 (17:48 +0000)]
fix issue 270: add a new '--verbose' cmdline option which enables debug logging

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1232 18f94993-622a-0410-868e-e94f534f3744

12 months agoupdate HISTORY
g.rodola [Tue, 16 Jul 2013 16:15:16 +0000 (16:15 +0000)]
update HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1231 18f94993-622a-0410-868e-e94f534f3744

12 months agoFix for issue #265. Ensure the passed object has a callable listen() method. This...
btimby [Tue, 16 Jul 2013 16:07:08 +0000 (16:07 +0000)]
Fix for issue #265. Ensure the passed object has a callable listen() method. This test should pass for socket.socket and socket._socket objects. Otherwise treat it as an address/port tuple (the old behavior).

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1230 18f94993-622a-0410-868e-e94f534f3744

12 months agoFix issue 263: MultiprocessFTPServer leaks memory and file descriptors. (patch by...
g.rodola [Tue, 16 Jul 2013 14:29:49 +0000 (14:29 +0000)]
Fix issue 263: MultiprocessFTPServer leaks memory and file descriptors.  (patch by Juan J. Martinez)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1229 18f94993-622a-0410-868e-e94f534f3744

15 months agosmall refactoring
g.rodola [Sat, 27 Apr 2013 17:21:05 +0000 (17:21 +0000)]
small refactoring

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1228 18f94993-622a-0410-868e-e94f534f3744

15 months agosmall refactoring
g.rodola [Sat, 27 Apr 2013 17:17:04 +0000 (17:17 +0000)]
small refactoring

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1227 18f94993-622a-0410-868e-e94f534f3744

15 months agoignore me
g.rodola [Wed, 24 Apr 2013 21:44:53 +0000 (21:44 +0000)]
ignore me

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1226 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 254: port bench.py script to python 3
g.rodola [Wed, 24 Apr 2013 21:43:31 +0000 (21:43 +0000)]
Fix issue 254: port bench.py script to python 3

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1225 18f94993-622a-0410-868e-e94f534f3744

15 months agofix issue 253: bench.py --timeout option
g.rodola [Wed, 24 Apr 2013 21:24:31 +0000 (21:24 +0000)]
fix issue 253: bench.py --timeout option

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1224 18f94993-622a-0410-868e-e94f534f3744

15 months agoupdate version to 1.2.0
g.rodola [Mon, 22 Apr 2013 14:47:16 +0000 (14:47 +0000)]
update version to 1.2.0

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1220 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 252: FTPServer's address parameter can also be a socket object
g.rodola [Fri, 19 Apr 2013 14:35:41 +0000 (14:35 +0000)]
Fix issue 252: FTPServer's address parameter can also be a socket object

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1219 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 250: add FTPServer's backlog kwarg controlling the queue of accepted connec...
g.rodola [Fri, 19 Apr 2013 01:48:39 +0000 (01:48 +0000)]
Fix issue 250: add FTPServer's backlog kwarg controlling the queue of accepted connections.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1218 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 251: provide a fileno() method for epoll() and kqueue() IO pollers
g.rodola [Thu, 18 Apr 2013 18:21:44 +0000 (18:21 +0000)]
Fix issue 251: provide a fileno() method for epoll() and kqueue() IO pollers

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1217 18f94993-622a-0410-868e-e94f534f3744

15 months agouse a set() while building up FEAT response so that we're sure features are not liste...
g.rodola [Thu, 18 Apr 2013 00:58:41 +0000 (00:58 +0000)]
use a set() while building up FEAT response so that we're sure features are not listed twice

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1216 18f94993-622a-0410-868e-e94f534f3744

15 months agoAttempt to fix issue #245 (again): de-localize socket_map and tasks vars: they are...
g.rodola [Wed, 17 Apr 2013 18:03:39 +0000 (18:03 +0000)]
Attempt to fix issue #245 (again): de-localize socket_map and tasks vars: they are copies and any change via setattr() is not reflected back to the original object they are referring to

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1215 18f94993-622a-0410-868e-e94f534f3744

15 months agoupdate HISTORY
g.rodola [Tue, 9 Apr 2013 15:48:31 +0000 (15:48 +0000)]
update HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1210 18f94993-622a-0410-868e-e94f534f3744

15 months agofix AttributeError on FreeBSD
g.rodola [Tue, 9 Apr 2013 15:36:23 +0000 (15:36 +0000)]
fix AttributeError on FreeBSD

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1209 18f94993-622a-0410-868e-e94f534f3744

15 months agoupdate version
g.rodola [Tue, 9 Apr 2013 15:27:02 +0000 (15:27 +0000)]
update version

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1208 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 247: whenever available (PY >= 3.3) use time.monotonic() instead of time...
g.rodola [Mon, 8 Apr 2013 01:18:24 +0000 (01:18 +0000)]
Fix issue 247: whenever available (PY >= 3.3) use time.monotonic() instead of time.time()

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1207 18f94993-622a-0410-868e-e94f534f3744

15 months agofix issue 246: ThrottledDTPHandler was broken; also reintroduce and readapt the old...
g.rodola [Sat, 6 Apr 2013 15:26:00 +0000 (15:26 +0000)]
fix issue 246: ThrottledDTPHandler was broken; also reintroduce and readapt the old tests which were removed as of r904

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1206 18f94993-622a-0410-868e-e94f534f3744

15 months agorenew HISTORY format
g.rodola [Fri, 5 Apr 2013 12:47:43 +0000 (12:47 +0000)]
renew HISTORY format

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1205 18f94993-622a-0410-868e-e94f534f3744

15 months agorenew HISTORY format
g.rodola [Fri, 5 Apr 2013 12:26:45 +0000 (12:26 +0000)]
renew HISTORY format

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1204 18f94993-622a-0410-868e-e94f534f3744

15 months agoFix issue 245: ThreadedFTPServer hogs all CPU resources after a client connects.
g.rodola [Fri, 5 Apr 2013 11:54:58 +0000 (11:54 +0000)]
Fix issue 245: ThreadedFTPServer hogs all CPU resources after a client connects.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1203 18f94993-622a-0410-868e-e94f534f3744

15 months agocalculate memory consumption as (rss - shared) as opposed to just 'rss'
g.rodola [Thu, 4 Apr 2013 16:23:09 +0000 (16:23 +0000)]
calculate memory consumption as (rss - shared) as opposed to just 'rss'

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1202 18f94993-622a-0410-868e-e94f534f3744

15 months agolog PID on start
g.rodola [Thu, 4 Apr 2013 16:03:13 +0000 (16:03 +0000)]
log PID on start

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1199 18f94993-622a-0410-868e-e94f534f3744

16 months agoFix issue 244: on python >= 3.3 use os.sendfile() instead of pysendfile third-party...
g.rodola [Fri, 22 Mar 2013 11:07:40 +0000 (11:07 +0000)]
Fix issue 244: on python >= 3.3 use os.sendfile() instead of pysendfile third-party module

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1198 18f94993-622a-0410-868e-e94f534f3744

16 months agoFix issue 243: an erroneous error message is given in case the address passed to...
g.rodola [Thu, 21 Mar 2013 15:03:49 +0000 (15:03 +0000)]
Fix issue 243: an erroneous error message is given in case the address passed to bind() is already in use.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1197 18f94993-622a-0410-868e-e94f534f3744

16 months ago(e)poll() poller: localize variable access to minimize overhead
g.rodola [Tue, 12 Mar 2013 15:05:39 +0000 (15:05 +0000)]
(e)poll() poller: localize variable access to minimize overhead

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1196 18f94993-622a-0410-868e-e94f534f3744

16 months agofix issue 241: allow empty passwords
g.rodola [Mon, 11 Mar 2013 20:19:00 +0000 (20:19 +0000)]
fix issue 241: allow empty passwords

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1195 18f94993-622a-0410-868e-e94f534f3744

16 months agoCmdline usage: by default assume the default interface passed to getaddrifo() is...
g.rodola [Mon, 11 Mar 2013 19:00:38 +0000 (19:00 +0000)]
Cmdline usage: by default assume the default interface passed to getaddrifo() is None instead of "" (which is wrong, as that's the alias intended for bind()).

This has an important consequence in that the FTP server won't make any DNS query during the startup. As such it won't wait and eventually fail if the DNS is down.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1194 18f94993-622a-0410-868e-e94f534f3744

16 months agofix tests broken after previous commit
g.rodola [Mon, 11 Mar 2013 15:29:35 +0000 (15:29 +0000)]
fix tests broken after previous commit

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1192 18f94993-622a-0410-868e-e94f534f3744

16 months agoFix issue 238: username is not logged in case of failed authentication. (patch by...
g.rodola@gmail.com [Mon, 11 Mar 2013 12:13:11 +0000 (12:13 +0000)]
Fix issue 238: username is not logged in case of failed authentication. (patch by tlockert)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1191 18f94993-622a-0410-868e-e94f534f3744

16 months agoFix issue 240: enable 'python -m pyftpdlib' cmdline syntax
g.rodola@gmail.com [Sun, 10 Mar 2013 13:03:33 +0000 (13:03 +0000)]
Fix issue 240: enable 'python -m pyftpdlib' cmdline syntax

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1190 18f94993-622a-0410-868e-e94f534f3744

16 months agofix deprecation warnings due to assertEquals being deprecated in favor of self.assert...
g.rodola [Tue, 5 Mar 2013 23:33:41 +0000 (23:33 +0000)]
fix deprecation warnings due to assertEquals being deprecated in favor of self.assertEqual (thanks Arfrever)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1189 18f94993-622a-0410-868e-e94f534f3744

16 months agofix some ResourceWarnings found with Python's -Wa cmdline option plus fix NameError...
g.rodola [Tue, 5 Mar 2013 23:15:13 +0000 (23:15 +0000)]
fix some ResourceWarnings found with Python's -Wa cmdline option plus fix NameError exception being raised on Python 3.1 due to callable() builtin not being available.  (thanks Arfrever)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1188 18f94993-622a-0410-868e-e94f534f3744

16 months agofix issue 239: make test suite return exit status code != 0 in case of test failures...
g.rodola [Tue, 5 Mar 2013 22:57:30 +0000 (22:57 +0000)]
fix issue 239: make test suite return exit status code != 0 in case of test failures (patch by Arfrever.FTA)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1187 18f94993-622a-0410-868e-e94f534f3744

16 months agofix deprecation warnings caused by assertRaisesRegexp
g.rodola [Tue, 5 Mar 2013 22:49:28 +0000 (22:49 +0000)]
fix deprecation warnings caused by assertRaisesRegexp

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1186 18f94993-622a-0410-868e-e94f534f3744

17 months agoupdate version and date
g.rodola [Fri, 22 Feb 2013 19:40:08 +0000 (19:40 +0000)]
update version and date

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1184 18f94993-622a-0410-868e-e94f534f3744

17 months agotest suite: introduce assertRaisesRegexp in order to check responses actually sent...
g.rodola [Fri, 22 Feb 2013 19:07:12 +0000 (19:07 +0000)]
test suite: introduce assertRaisesRegexp in order to check responses actually sent by server

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1183 18f94993-622a-0410-868e-e94f534f3744

17 months agotest suite: introduce assertRaisesRegexp in order to check responses actually send...
g.rodola [Fri, 22 Feb 2013 18:43:14 +0000 (18:43 +0000)]
test suite: introduce assertRaisesRegexp in order to check responses actually send by server

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1182 18f94993-622a-0410-868e-e94f534f3744

17 months agofix issue 236: MultiprocessFTPServer and ThreadedFTPServer hanging in case of failed...
g.rodola [Fri, 22 Feb 2013 17:48:37 +0000 (17:48 +0000)]
fix issue 236: MultiprocessFTPServer and ThreadedFTPServer hanging in case of failed authentication

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1181 18f94993-622a-0410-868e-e94f534f3744

17 months agotest suite: set FTP server logging level to WARNING so that warning messages don...
g.rodola [Fri, 22 Feb 2013 16:22:14 +0000 (16:22 +0000)]
test suite: set FTP server logging level to WARNING so that warning messages don't go unnoticed. Also, provide a decorator to ignore warning messages for certain tests which legitimately cause warnings.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1180 18f94993-622a-0410-868e-e94f534f3744

17 months agomax connections test: use ftplib's quit() method instead of close() so that client...
g.rodola [Fri, 22 Feb 2013 03:47:31 +0000 (03:47 +0000)]
max connections test: use ftplib's quit() method instead of close() so that client and server are more synchronized

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1179 18f94993-622a-0410-868e-e94f534f3744

17 months agoadd a MANIFEST.in file which tells 'python setup.py sdist' what files to include...
g.rodola [Tue, 19 Feb 2013 11:40:35 +0000 (11:40 +0000)]
add a MANIFEST.in file which tells 'python setup.py sdist' what files to include in the tarball

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1175 18f94993-622a-0410-868e-e94f534f3744

17 months agoset +x flags against demo scripts
g.rodola [Tue, 19 Feb 2013 11:25:49 +0000 (11:25 +0000)]
set +x flags against demo scripts

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1174 18f94993-622a-0410-868e-e94f534f3744

17 months agoFix ThrottledDTPHandler which was broken
g.rodola [Tue, 19 Feb 2013 11:13:14 +0000 (11:13 +0000)]
Fix ThrottledDTPHandler which was broken

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1173 18f94993-622a-0410-868e-e94f534f3744

17 months agofix 'dict changed size during iteration' error on Windows plus update date in HISTORY...
g.rodola [Tue, 19 Feb 2013 10:34:22 +0000 (10:34 +0000)]
fix 'dict changed size during iteration' error on Windows plus update date in HISTORY file

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1172 18f94993-622a-0410-868e-e94f534f3744

17 months agoupdate copyright banner; update docstring; disable unicode tests which are not relieable
g.rodola [Tue, 19 Feb 2013 10:13:09 +0000 (10:13 +0000)]
update copyright banner; update docstring; disable unicode tests which are not relieable

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1171 18f94993-622a-0410-868e-e94f534f3744

17 months agowin/unix authorizers: get rid of [] as the default for 'allowed_users' and 'rejected_...
g.rodola [Thu, 14 Feb 2013 12:59:29 +0000 (12:59 +0000)]
win/unix authorizers: get rid of [] as the default for 'allowed_users' and 'rejected_users' arguments. Also add a test for __repr__.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1170 18f94993-622a-0410-868e-e94f534f3744

17 months agopycharm run
g.rodola [Thu, 14 Feb 2013 12:27:50 +0000 (12:27 +0000)]
pycharm run

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1169 18f94993-622a-0410-868e-e94f534f3744

17 months agologging: check whether using colors when configuring logs (as opposed to import...
g.rodola@gmail.com [Sun, 10 Feb 2013 19:33:26 +0000 (19:33 +0000)]
logging: check whether using colors when configuring  logs (as opposed to import time)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1168 18f94993-622a-0410-868e-e94f534f3744

17 months agounix_daemon.py script: get rid of python-daemon (http://pypi.python.org/pypi/python...
g.rodola@gmail.com [Sun, 10 Feb 2013 18:43:44 +0000 (18:43 +0000)]
unix_daemon.py script: get rid of python-daemon (pypi.python.org/pypi/python-daemon) dependancy as it no longer works (and it is apparently no longer maintained since year 2010). Instead, replace the part which does the actual damonization by taking this recipe as an example http://jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/. Also add a 'restart' cmdline option

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1167 18f94993-622a-0410-868e-e94f534f3744

17 months agofix unraised warnings during FTPS tests
g.rodola@gmail.com [Sun, 10 Feb 2013 11:02:27 +0000 (11:02 +0000)]
fix unraised warnings during FTPS tests

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1166 18f94993-622a-0410-868e-e94f534f3744

17 months agorestore compatibility with py <= 2.6
g.rodola@gmail.com [Sun, 10 Feb 2013 10:31:29 +0000 (10:31 +0000)]
restore compatibility with py <= 2.6

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1165 18f94993-622a-0410-868e-e94f534f3744

17 months agorestore compatibility with py 2.6
g.rodola [Sat, 9 Feb 2013 19:49:30 +0000 (19:49 +0000)]
restore compatibility with py 2.6

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1164 18f94993-622a-0410-868e-e94f534f3744

17 months agoformat_mlsx(): localize variables to minimize overhead
g.rodola [Sat, 9 Feb 2013 16:39:21 +0000 (16:39 +0000)]
format_mlsx(): localize variables to minimize overhead

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1163 18f94993-622a-0410-868e-e94f534f3744

17 months agoFix some Windows failures.
g.rodola [Thu, 7 Feb 2013 23:26:11 +0000 (23:26 +0000)]
Fix some Windows failures.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1162 18f94993-622a-0410-868e-e94f534f3744

17 months agorestore compatibility with python <= 2.5
g.rodola [Fri, 1 Feb 2013 17:48:37 +0000 (17:48 +0000)]
restore compatibility with python <= 2.5

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1161 18f94993-622a-0410-868e-e94f534f3744

17 months agobig logging refactoring: introduce a new 'log_prefix' attribute to FTPHandler in...
g.rodola [Fri, 1 Feb 2013 17:30:30 +0000 (17:30 +0000)]
big logging refactoring: introduce a new 'log_prefix' attribute to FTPHandler in order to allow customization of every line logged

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1160 18f94993-622a-0410-868e-e94f534f3744

17 months agologging refactoring (issue 236): move everything into a separate log.py module and...
g.rodola [Fri, 1 Feb 2013 13:42:48 +0000 (13:42 +0000)]
logging refactoring (issue 236): move everything into a separate log.py module and provide coloured logs by default

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1159 18f94993-622a-0410-868e-e94f534f3744

17 months agoBig logging refactoring (future issue 236).
g.rodola [Fri, 1 Feb 2013 02:52:24 +0000 (02:52 +0000)]
Big logging refactoring (future issue 236).
pyftpdlib logging has always been kind of messy for 2 reasons:

1) it's very verbose as it logs *all* commands and responses exchanged between client and server on the control channel; this includes commands such as TYPE, OPTS, HELP, SITE etc. which are not very interesting from the admin point of view.

2) it's repetitive as in case of filesytem related commands, (say DELE) we get *3* lines of logs instead of 1:
[D] <- DELE somefile.ext
[D] -> 200 file deleted
[I] somefile.ext was deleted

With this commit logline() logging is disabled by default and only 'useful' messages such as MKD, RMD, DELE, etc are logged in a single line (as opposed to 3):
[I] DELE /somefile.txt 250

To get back to the old behavior user will have to use:

>>> logging.basicConfig(level=logging.DEBUG)

logging.DEBUG will be an alias for 'enable line logging'.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1158 18f94993-622a-0410-868e-e94f534f3744

17 months agorestore compatibility with python 2.4
g.rodola [Thu, 31 Jan 2013 17:17:13 +0000 (17:17 +0000)]
restore compatibility with python 2.4

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1157 18f94993-622a-0410-868e-e94f534f3744

17 months agodo not rely on *exact* response string in certain tests
g.rodola [Thu, 31 Jan 2013 17:07:25 +0000 (17:07 +0000)]
do not rely on *exact* response string in certain tests

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1156 18f94993-622a-0410-868e-e94f534f3744

17 months agoupdate README
g.rodola [Sun, 27 Jan 2013 23:23:47 +0000 (23:23 +0000)]
update README

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1155 18f94993-622a-0410-868e-e94f534f3744

17 months agoremove old comment
g.rodola [Sun, 27 Jan 2013 22:45:58 +0000 (22:45 +0000)]
remove old comment

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1154 18f94993-622a-0410-868e-e94f534f3744

18 months agorename variable (ignore me)
g.rodola [Thu, 24 Jan 2013 17:01:47 +0000 (17:01 +0000)]
rename variable (ignore me)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1153 18f94993-622a-0410-868e-e94f534f3744

18 months agoupdate HISTORY
g.rodola [Thu, 24 Jan 2013 16:57:40 +0000 (16:57 +0000)]
update HISTORY

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1152 18f94993-622a-0410-868e-e94f534f3744

18 months agoFix issue 233: make sure on_logout() is not called if USER was provided but not PASSw...
g.rodola [Thu, 24 Jan 2013 16:37:49 +0000 (16:37 +0000)]
Fix issue 233: make sure on_logout() is not called if USER was provided but not PASSword (patch by Ben Timby)

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1151 18f94993-622a-0410-868e-e94f534f3744

18 months agocatch the right exceptions when polling on select()/epoll()/poll()/kqueue() - also...
g.rodola [Wed, 16 Jan 2013 01:17:35 +0000 (01:17 +0000)]
catch the right exceptions when polling on select()/epoll()/poll()/kqueue() - also, for kqueue() make sure to also catch EINTR and ignore it as with all other pollers

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1150 18f94993-622a-0410-868e-e94f534f3744

18 months agofix issue 234: provide a nice __repr__ for FTPHandler and DTPHandler
g.rodola [Tue, 15 Jan 2013 02:01:41 +0000 (02:01 +0000)]
fix issue 234: provide a nice __repr__ for FTPHandler and DTPHandler

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1149 18f94993-622a-0410-868e-e94f534f3744

18 months agoOSX: fix for IPv4-mapped IPv6 addresses
g.rodola [Tue, 15 Jan 2013 01:06:46 +0000 (01:06 +0000)]
OSX: fix for IPv4-mapped IPv6 addresses

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1148 18f94993-622a-0410-868e-e94f534f3744

18 months agoMulti process FTPd: set a timeout for join() when waiting for threads/subprocesses...
g.rodola [Sat, 12 Jan 2013 18:35:32 +0000 (18:35 +0000)]
Multi process FTPd: set a timeout for join() when waiting for threads/subprocesses to terminate. Also, in case of processes, after timeout occurs use SIGKILL against all the children which are still alive.

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1147 18f94993-622a-0410-868e-e94f534f3744

18 months agoFreeBSD / multi process FTPd: during server shutdown use SIGKILL instead of SIGTERM...
g.rodola [Sat, 12 Jan 2013 17:38:26 +0000 (17:38 +0000)]
FreeBSD / multi process FTPd: during server shutdown use SIGKILL instead of SIGTERM when killing process children in order to avoid hanging

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1146 18f94993-622a-0410-868e-e94f534f3744

18 months agofix issue 232: hybrid IPv4/IPv6 support is broken. (patch by Claus Klein - see ml...
g.rodola [Sat, 5 Jan 2013 17:50:55 +0000 (17:50 +0000)]
fix issue 232: hybrid IPv4/IPv6 support is broken.  (patch by Claus Klein - see ml discussion at https://groups.google.com/forum/?fromgroups#!topic/pyftpdlib/imcL4POfO6Y )

git-svn-id: http://pyftpdlib.googlecode.com/svn/trunk@1145 18f94993-622a-0410-868e-e94f534f3744