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

Unified Diff: third_party/pyftpdlib/google.patch

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/google.patch
diff --git a/third_party/pyftpdlib/google.patch b/third_party/pyftpdlib/google.patch
new file mode 100644
index 0000000000000000000000000000000000000000..43a74c2b08502e059daf3c2f2c85902b861279a2
--- /dev/null
+++ b/third_party/pyftpdlib/google.patch
@@ -0,0 +1,23 @@
+--- pyftpdlib/ftpserver.py
++++ pyftpdlib/ftpserver.py
+@@ -2546,14 +2546,12 @@ 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()
+ 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."""

Powered by Google App Engine
This is Rietveld 408576698