Example #1
0
 def __init__(self, host, port=443, conn=None, inflight=100):
     self.counter = 1
     self.deflate = deflator()
     self.inflate = inflator()
     self.send_mutex = coro.mutex()
     http_client.client.__init__(self, host, port, conn, inflight)
     # replace the fifo with a dictionary (spdy is not serialized)
     self.pending = {}
Example #2
0
 def __init__(self, host, port=443, conn=None, inflight=100):
     self.counter = 1
     self.deflate = deflator()
     self.inflate = inflator()
     self.send_mutex = coro.mutex()
     http_client.client.__init__(self, host, port, conn, inflight)
     # replace the fifo with a dictionary (spdy is not serialized)
     self.pending = {}
Example #3
0
 def run(self):
     self.streams = {}
     self.deflate = deflator()
     self.inflate = inflator()
     self.ofifo = coro.fifo()
     self.obuf = coro.semaphore(self.output_buffer_size)
     coro.spawn(self.send_thread)
     try:
         self.read_frames()
     finally:
         self.ofifo.push(None)
Example #4
0
 def run(self):
     self.streams = {}
     self.deflate = deflator()
     self.inflate = inflator()
     self.ofifo = coro.fifo()
     self.obuf = coro.semaphore(self.output_buffer_size)
     coro.spawn(self.send_thread)
     try:
         self.read_frames()
     finally:
         self.ofifo.push(None)