Files
scylladb/thrift
Avi Kivity 8d449190d1 thrift: handle exceptions thrown in non-continuation part of thrift handler
Our thrift code performs an elaborate dance to convert a result/exception
reported in a future<> to the cob/exn_cob flow required by the thrift
library.  However, if the exception if thrown before the first continuation,
no one will catch it will be leaked, eventually resulting in a crash.

Fix by replacing the complete() infrastructure, which took a future as a
parameter, with a with_cob() helper that instead takes a function to
execute.  This allows it to catch both exceptions thrown directly and
exceptions reported via the future.

Fixes #133.
2015-08-11 18:29:58 +03:00
..
2015-02-19 17:53:13 +02:00
2015-07-26 10:32:26 +03:00
2015-04-24 18:01:01 +02:00