예제 #1
0
 def __init__ (self, server, conn, addr, module):
     ftp_channel.__init__(self,server,conn,addr)
     requestCloseOnExec(conn)
     self.module=module
     self.userid=''
     self.password=''
     self.path='/'
     self.cookies={}
예제 #2
0
 def __init__(self, server, conn, addr, module):
     ftp_channel.__init__(self, server, conn, addr)
     requestCloseOnExec(conn)
     self.module = module
     self.userid = ''
     self.password = ''
     self.path = '/'
     self.cookies = {}
예제 #3
0
 def __init__(self, server, sock, addr):
     self.server = server
     self.addr = addr
     asynchat.async_chat.__init__(self, sock)
     requestCloseOnExec(sock)
     self.env = {}
     self.data = StringIO()
     self.set_terminator(10)
     self.size = None
     self.done = None
예제 #4
0
 def __init__(self,server,sock,addr):
     self.server = server
     self.addr = addr
     asynchat.async_chat.__init__ (self, sock)
     requestCloseOnExec(sock)
     self.env={}
     self.data=StringIO()
     self.set_terminator(10)
     self.size=None
     self.done=None
예제 #5
0
 def __init__(self, server, sock, addr):
     self.server = server
     self.addr = addr
     asynchat.async_chat.__init__(self, sock)
     requestCloseOnExec(sock)
     self.setInitialState()
     self.remainingRecs = 1  # We have to read at least one
     self.env = {}
     self.stdin = StringIO()
     self.filterData = StringIO()  # not currently used, but maybe someday
     self.requestId = 0
예제 #6
0
 def __init__(self, server, sock, addr):
     self.server = server
     self.addr = addr
     asynchat.async_chat.__init__(self, sock)
     requestCloseOnExec(sock)
     self.setInitialState()
     self.remainingRecs = 1  # We have to read at least one
     self.env = {}
     self.stdin = StringIO()
     self.filterData = StringIO()  # not currently used, but maybe someday
     self.requestId = 0
예제 #7
0
 def __init__(self, server, conn, addr):
     http_channel.__init__(self, server, conn, addr)
     if isinstance(self.producer_fifo, (fifo, asynchat.fifo)):
         self.producer_fifo_push = self.producer_fifo.push
         self.producer_fifo_first = self.producer_fifo.first
         self.producer_fifo_pop = self.producer_fifo.pop
     else:
         self.producer_fifo_push = self.producer_fifo.append
         def first():
             return self.producer_fifo[0]
         self.producer_fifo_first = first
         def pop():
             del self.producer_fifo[0]
         self.producer_fifo_pop = pop
     requestCloseOnExec(conn)
     self.queue = []
     self.working=0
     self.max_header_len = getConfiguration().http_header_max_length
예제 #8
0
 def create_socket(self, family, type):
     asyncore.dispatcher.create_socket(self, family, type)
     requestCloseOnExec(self.socket)
예제 #9
0
 def create_socket(self, family, type):
     asyncore.dispatcher.create_socket(self, family, type)
     requestCloseOnExec(self.socket)
예제 #10
0
 def __init__(self, server, conn, addr):
     http_channel.__init__(self, server, conn, addr)
     requestCloseOnExec(conn)
     self.queue=[]
     self.working=0
예제 #11
0
 def __init__(self, server, conn, addr):
     http_channel.__init__(self, server, conn, addr)
     requestCloseOnExec(conn)
     self.queue=[]
     self.working=0
     self.max_header_len = getConfiguration().http_header_max_length
예제 #12
0
 def __init__(self, server, conn, addr):
     http_channel.__init__(self, server, conn, addr)
     requestCloseOnExec(conn)
     self.queue=[]
     self.working=0
     self.max_header_len = getConfiguration().http_header_max_length