kpdyer / fteproxy

programmable proxy for censorship circumvention
https://fteproxy.org/
Apache License 2.0
149 stars 21 forks source link

fteproxy uses unnecessary amount of CPU when idle #110

Closed kpdyer closed 10 years ago

kpdyer commented 10 years ago

When sitting idle, fteproxy uses roughly 10% of the CPU, polling for incoming connections.

We should minimize CPU utilization when polling sockets.

kpdyer commented 10 years ago

Commit 3bceb64 resolves this issue on my system, fteproxy now consumes roughly ~0.6 CPU when sitting idle. In future we may want to investigate this further to determine if we can consume ~0 CPU when no connections are active.