mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::resource: Involve a request context interrupt on timeout.
This commit is contained in:
parent
9714d1ee15
commit
54f08c0351
1 changed files with 6 additions and 0 deletions
|
@ -317,6 +317,12 @@ ircd::resource::operator()(client &client,
|
|||
head.path
|
||||
};
|
||||
|
||||
// The interrupt is effective when the socket has already been
|
||||
// closed and/or the client is still stuck in a request for
|
||||
// some reason.
|
||||
if(client.reqctx)
|
||||
ctx::interrupt(*client.reqctx);
|
||||
|
||||
//TODO: If we know that no response has been sent yet
|
||||
//TODO: we can respond with http::REQUEST_TIMEOUT instead.
|
||||
client.close(net::dc::RST, net::close_ignore);
|
||||
|
|
Loading…
Reference in a new issue