[medusa] Re: CPU utilization optimization? PROBLEM FOUND!

Itay Zandbank zmbq@a...
Mon, 9 Apr 2001 09:56:01 +0200

> > Found that the asyncore.py select loop was being pegged as soon as
> > the first connection was made. Also noticed this was so because the
> > asynchat.writable method was always returning a '1' even when the
> > ac_out_buffer output buffer was empty. I replaced the 'is' operator
> > with the '==' and it now seems to work normally.
> Interesting. Did you have the select timeout set very low?

The timeout in his case was irrelevant, since select always returned

I once had the same problem, when I didn't close a dispatcher down
properly. It took me a while to figure out why /tmp filled up with debug