This series adds two more features to the Contexts:
The keep_alive mode in which the Context keeps instances alive even after the last "user" exits. This means follow-up request()s will get the "old" instance instead of having to initialize a new one.
The reset_on_error request-mode where an exception while the instance is life will trigger teardown of the instance. In conjunction with keep_alive this is important to make sure an unrelated request later on will get clean instance, even if a failure occured during the earlier request.
This series adds two more features to the
Context
s:keep_alive
mode in which theContext
keeps instances alive even after the last "user" exits. This means follow-uprequest()
s will get the "old" instance instead of having to initialize a new one.reset_on_error
request-mode where an exception while the instance is life will trigger teardown of the instance. In conjunction withkeep_alive
this is important to make sure an unrelated request later on will get clean instance, even if a failure occured during the earlier request.