b.t.f.m.FTPTestServer(test_server.TestServer) : class documentation

Part of bzrlib.tests.ftp_server.medusa_based View In Hierarchy

Common code for FTP server facilities.
Method __init__ Undocumented
Method get_url Calculate an ftp url to this server.
Method get_bogus_url Return a URL which cannot be connected to.
Method log This is used by medusa.ftp_server to log connections, etc.
Method start_server Setup the server to service requests.
Method stop_server Remove the server and cleanup any resources it owns.
Method add_user Add a user with write access.
Static Method _asyncore_loop_ignore_EBADF Ignore EBADF during server shutdown.
def __init__(self):
Undocumented
def get_url(self):
Calculate an ftp url to this server.
def get_bogus_url(self):
Return a URL which cannot be connected to.
def log(self, message):
This is used by medusa.ftp_server to log connections, etc.
def start_server(self, vfs_server=None):
Setup the server to service requests.
def stop_server(self):
Remove the server and cleanup any resources it owns.
@staticmethod
def _asyncore_loop_ignore_EBADF(*args, **kwargs):
Ignore EBADF during server shutdown.

We close the socket to get the server to shutdown, but this causes select.select() to raise EBADF.

def add_user(self, user, password):
Add a user with write access.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.