Commit 1042123c authored by Amos Latteier's avatar Amos Latteier

Minor tweaking of xmit channel class to get rid of annoying log messages. Now...

Minor tweaking of xmit channel class to get rid of annoying log messages. Now xmit channels are never readable, and don't log unhandled connect events.
parent 3a55e665
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# If you are interested in using this software in a commercial context, # If you are interested in using this software in a commercial context,
# or in purchasing support, please contact the author. # or in purchasing support, please contact the author.
RCS_ID = '$Id: ftp_server.py,v 1.6 1999/07/20 16:53:49 amos Exp $' RCS_ID = '$Id: ftp_server.py,v 1.7 1999/07/26 07:08:43 amos Exp $'
# An extensible, configurable, asynchronous FTP server. # An extensible, configurable, asynchronous FTP server.
# #
...@@ -854,15 +854,12 @@ class xmit_channel (asynchat.async_chat): ...@@ -854,15 +854,12 @@ class xmit_channel (asynchat.async_chat):
self.client_addr = client_addr self.client_addr = client_addr
asynchat.async_chat.__init__ (self) asynchat.async_chat.__init__ (self)
# def __del__ (self): def readable (self):
# print 'xmit_channel.__del__()' return 0
def log (*args): def handle_connect(self):
pass pass
def readable (self):
return not self.connected
def writable (self): def writable (self):
return 1 return 1
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# If you are interested in using this software in a commercial context, # If you are interested in using this software in a commercial context,
# or in purchasing support, please contact the author. # or in purchasing support, please contact the author.
RCS_ID = '$Id: ftp_server.py,v 1.6 1999/07/20 16:53:49 amos Exp $' RCS_ID = '$Id: ftp_server.py,v 1.7 1999/07/26 07:08:43 amos Exp $'
# An extensible, configurable, asynchronous FTP server. # An extensible, configurable, asynchronous FTP server.
# #
...@@ -854,15 +854,12 @@ class xmit_channel (asynchat.async_chat): ...@@ -854,15 +854,12 @@ class xmit_channel (asynchat.async_chat):
self.client_addr = client_addr self.client_addr = client_addr
asynchat.async_chat.__init__ (self) asynchat.async_chat.__init__ (self)
# def __del__ (self): def readable (self):
# print 'xmit_channel.__del__()' return 0
def log (*args): def handle_connect(self):
pass pass
def readable (self):
return not self.connected
def writable (self): def writable (self):
return 1 return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment