limscoder / amfast

An Adobe AMF serialization and RPC implementation for Python, written as a C extension for speed.
MIT License
5 stars 6 forks source link

HTTPChannel waiting loop should use events to avoid un-needed CPU useage #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a long-polling client is waiting for a message, HTTPChannel loops with
time.sleep(channel.check_interval) until a message becomes available.

Use threading.Event to signal waiting thread when message becomes
available, to avoid waking thread every channel.check_interval.

Original issue reported on code.google.com by dthomp...@gmail.com on 4 Jun 2009 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by dthomp...@gmail.com on 8 Jun 2009 at 12:54

GoogleCodeExporter commented 9 years ago
Fixed in trunk

Original comment by dthomp...@gmail.com on 8 Jun 2009 at 12:55