« Previous | Next » 

Revision 020f4a9e

ID020f4a9e48c94ff8d8a35808dd1e025373fdd6b9

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().

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences