« Previous | Next » 

Revision 020f4a9e


Added by Vangelis Koukis about 11 years ago

Improve cleanup of worker greenlets

There are two worker greenlets per direction of an established
connection. This patch improves the way they are cleaned up
by the main connection greenlet.

The workers are no longer linked together. This removes the hideous
flooding of logs by LinkedCompleted/LinkedExited exceptions reported
by gevent.

Instead, the main greenlet waits until any worker dies, then makes sure
both are killed and joined in _cleanup().


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences