You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by dr...@apache.org on 2010/08/31 00:05:36 UTC
svn commit: r990984 -
/incubator/thrift/trunk/lib/erl/src/thrift_processor.erl
Author: dreiss
Date: Mon Aug 30 22:05:36 2010
New Revision: 990984
URL: http://svn.apache.org/viewvc?rev=990984&view=rev
Log:
erlang: Don't catch exits in thrift_processor
They are not handled properly, so the exit backtrace gets lost.
Just ignore them and let them kill the process naturally.
Modified:
incubator/thrift/trunk/lib/erl/src/thrift_processor.erl
Modified: incubator/thrift/trunk/lib/erl/src/thrift_processor.erl
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/erl/src/thrift_processor.erl?rev=990984&r1=990983&r2=990984&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/erl/src/thrift_processor.erl (original)
+++ incubator/thrift/trunk/lib/erl/src/thrift_processor.erl Mon Aug 30 22:05:36 2010
@@ -69,7 +69,7 @@ handle_function(State=#thrift_processor{
%% [Function, Params, Micro/1000.0]),
handle_success(State, Function, Result)
catch
- Type:Data ->
+ Type:Data when Type =:= throw orelse Type =:= error ->
handle_function_catch(State, Function, Type, Data)
end,
after_reply(OProto).