Exemplo n.º 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 = {}
Exemplo n.º 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 = {}
Exemplo n.º 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
Exemplo n.º 4
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
Exemplo n.º 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
Exemplo n.º 6
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 = get_http_header_max_length()
Exemplo n.º 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 = get_http_header_max_length()
Exemplo n.º 8
0
 def create_socket(self, family, type):
     asyncore.dispatcher.create_socket(self, family, type)
     requestCloseOnExec(self.socket)
Exemplo n.º 9
0
 def create_socket(self, family, type):
     asyncore.dispatcher.create_socket(self, family, type)
     requestCloseOnExec(self.socket)