Skip to content

Make sure the client crashes on every unhandled exception (new approach) #2201

@jomuel

Description

@jomuel

The raiden client is supposed to crash on every unhandled exception. However, unhandled exceptions that happen in spawned gevent.Greenlets only crash their greenlet and do not bubble up on the greenlet tree by default. Therefore, every greenlet will be required to check for unhandled exceptions in its children and propagate them.

Our former approach to achieve this behavior was to patch gevent and mess with its exception handling. After several attempts and discussions involving @andrevmatos, @ulope, @hackaugusto and myself we came to the conclusion that there is no way to achieve the behavior we want by patching gevent without unmanageable side effects.

Replaces #1829 and #2123

To do:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions