Пример #1
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
Пример #2
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
Пример #3
0
 def __init__(self, server, conn, addr):
     http_channel.__init__(self, server, conn, addr)
     requestCloseOnExec(conn)
     self.queue=[]
     self.working=0
Пример #4
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