0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 14:58:20 +02:00

modules/federation/send: Stop propagation and log EDU eval errors here.

This commit is contained in:
Jason Volk 2020-03-25 17:42:17 -07:00
parent 1b49d001b2
commit 3a696636df

View file

@ -59,6 +59,7 @@ handle_edu(client &client,
const m::resource::request::object<m::txn> &request,
const string_view &txn_id,
const m::edu &edu)
try
{
m::event event;
json::get<"origin"_>(event) = request.origin;
@ -78,6 +79,20 @@ handle_edu(client &client,
event, vmopts
};
}
catch(const ctx::interrupted &)
{
throw;
}
catch(const std::exception &e)
{
log::derror
{
m::log, "%s :%s EDU :%s",
txn_id,
request.origin,
e.what(),
};
}
void
handle_pdus(client &client,