Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: third_party/pyftpdlib/pyftpdlib/ftpserver.py

Issue 182031: Speed up net_unittests by re-using one FTP test server instance. (Closed)
Patch Set: add google.patch Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/pyftpdlib/pyftpdlib/ftpserver.py
diff --git a/third_party/pyftpdlib/pyftpdlib/ftpserver.py b/third_party/pyftpdlib/pyftpdlib/ftpserver.py
index d273f84265db62cfcdb4ccac0bb7bb25fe98dee3..d48f01038993b8bb6bf8865492ef6934349e70cc 100644
--- a/third_party/pyftpdlib/pyftpdlib/ftpserver.py
+++ b/third_party/pyftpdlib/pyftpdlib/ftpserver.py
@@ -2546,17 +2546,15 @@ class FTPHandler(asynchat.async_chat):
self.fs.root = self.authorizer.get_home_dir(self.username)
self.log("User %s logged in." %self.username)
else:
- CallLater(5, auth_failed)
+ auth_failed()
wtc 2009/08/31 20:38:44 Why are these changes related to re-using the same
self.username = ""
- self.sleeping = True
# wrong username
else:
if self.username.lower() == 'anonymous':
- CallLater(5, auth_failed, "Anonymous access not allowed.")
+ auth_failed("Anonymous access not allowed.")
else:
- CallLater(5, auth_failed)
+ auth_failed()
self.username = ""
- self.sleeping = True
def ftp_REIN(self, line):
"""Reinitialize user's current session."""
« third_party/pyftpdlib/README.chromium ('K') | « third_party/pyftpdlib/google.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698