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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 --- pyftpdlib/ftpserver.py
2 +++ pyftpdlib/ftpserver.py
3 @@ -2546,14 +2546,12 @@ class FTPHandler(asynchat.async_chat):
4 self.fs.root = self.authorizer.get_home_dir(self.username)
5 self.log("User %s logged in." %self.username)
6 else:
7 - CallLater(5, auth_failed)
8 + auth_failed()
9 self.username = ""
10 - self.sleeping = True
11 # wrong username
12 else:
13 if self.username.lower() == 'anonymous':
14 - CallLater(5, auth_failed, "Anonymous access not allowed.")
15 + auth_failed("Anonymous access not allowed.")
16 else:
17 - CallLater(5, auth_failed)
18 + auth_failed()
19 self.username = ""
20 - self.sleeping = True
21
22 def ftp_REIN(self, line):
23 """Reinitialize user's current session."""
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698