Skip to content

Commit 42b3836

Browse files
Yu-Ho Hsiehfacebook-github-bot
authored andcommitted
Override oninvariant violation for request rule
Summary: redo D36677315 This diff only checks request rule and this one addressed dddmello's previous (presub jk, ensure the abort execution is nonreentrant and some naming However, the response rule and maybe psp rule comes later on top of the diff Reviewed By: jalopezsilva Differential Revision: D69198534 fbshipit-source-id: a53b7ef80c1e6f24afbd1942dadfc93dc2f7d435
1 parent a66e9c7 commit 42b3836

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxygen/lib/http/HTTPMessageFilters.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ class HTTPMessageFilter
8080
nextTransactionHandler_->onError(error);
8181
}
8282

83+
void onInvariantViolation(const HTTPException& error) noexcept final {
84+
nextTransactionHandler_->onInvariantViolation(error);
85+
}
86+
8387
// These HTTPTransaction::Handler callbacks cannot be overrwritten
8488
void setTransaction(HTTPTransaction* txn) noexcept final {
8589
nextTransactionHandler_->setTransaction(txn);

0 commit comments

Comments
 (0)