mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
ircd: Catch inner timeouts on client request.
This commit is contained in:
parent
e123cfb395
commit
1dec67d81e
1 changed files with 7 additions and 0 deletions
|
@ -345,6 +345,13 @@ catch(const std::out_of_range &e)
|
|||
http::NOT_FOUND, "M_NOT_FOUND", "%s", e.what()
|
||||
};
|
||||
}
|
||||
catch(const ctx::timeout &e)
|
||||
{
|
||||
throw m::error
|
||||
{
|
||||
http::BAD_GATEWAY, "M_REQUEST_TIMEOUT", "%s", e.what()
|
||||
};
|
||||
}
|
||||
|
||||
ircd::resource::method &
|
||||
ircd::resource::operator[](const string_view &name)
|
||||
|
|
Loading…
Reference in a new issue