<s> """<STR_LIT>""" <EOL> from SimpleXMLRPCServer import SimpleXMLRPCServer , SimpleXMLRPCRequestHandler <EOL> from tlssocketservermixin import TLSSocketServerMixIn <EOL> class TLSXMLRPCRequestHandler ( SimpleXMLRPCRequestHandler ) : <EOL> """<STR_LIT>""" <EOL> def setup ( self ) : <EOL> self . connection = self . request <EOL> if getattr ( self , '<STR_LIT>' , None ) is not None : <EOL> self . connection . settimeout ( self . timeout ) <EOL> self . rfile = self . connection . makefile ( '<STR_LIT:rb>' , self . rbufsize ) <EOL> self . wfile = self . connection . makefile ( '<STR_LIT:wb>' , self . wbufsize ) <EOL> def do_POST ( self ) : <EOL> """<STR_LIT>""" <EOL> SimpleXMLRPCRequestHandler . do_POST ( self ) <EOL> try : <EOL> self . connection . shutdown ( ) <EOL> except : <EOL> pass <EOL> class TLSXMLRPCServer ( TLSSocketServerMixIn , <EOL> SimpleXMLRPCServer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , addr , * args , ** kwargs ) : <EOL> if not args and not '<STR_LIT>' in kwargs : <EOL> kwargs [ '<STR_LIT>' ] = TLSXMLRPCRequestHandler <EOL> SimpleXMLRPCServer . __init__ ( self , addr , * args , ** kwargs ) <EOL> class MultiPathTLSXMLRPCServer ( TLSXMLRPCServer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , addr , * args , ** kwargs ) : <EOL> TLSXMLRPCServer . __init__ ( addr , * args , ** kwargs ) <EOL> self . dispatchers = { } <EOL> self . allow_none = allow_none <EOL> self . encoding = encoding </s>
