]> git.proxmox.com Git - mirror_novnc.git/commit
Fix wsproxy CPU usage without affecting latency.
authorJoel Martin <github@martintribe.org>
Tue, 11 May 2010 14:25:29 +0000 (09:25 -0500)
committerJoel Martin <github@martintribe.org>
Tue, 11 May 2010 14:25:29 +0000 (09:25 -0500)
commit92f572a2491348a4dee4cab7081903e6c4b08695
tree7712c4d113b6f39980fb14be959150a741b7e535
parent4ce2696d52f8599bef23cf1805581e4e1770c94f
Fix wsproxy CPU usage without affecting latency.

Instead of selecting on everything every time, only select the writers
that we have items queued for. Most of the time the writers are ready
so if we select on them even when we don't have anything to send we
will fall into a tight loop.
wsproxy.py