-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: apply filters on response that want to be processed (#2239)
* feature: apply filters on response that want to be processed fix: admissionControl 499 cases should be counted Signed-off-by: Sandor Szücs <[email protected]> * add test that 499 is counted by admission control and make routing close filters on quit Signed-off-by: Sandor Szücs <[email protected]> * test: add loopback with admissioncontrol test to cover edge cases feature: close filters if routing.Routing is closed, right now it is only relevant for tests Signed-off-by: Sandor Szücs <[email protected]> * fix: staticcheck found unused code in test Signed-off-by: Sandor Szücs <[email protected]> * add PostProcessor and PreProcessor as intended Signed-off-by: Sandor Szücs <[email protected]> * fix: cleanup all filters that are FilterCloser on datasource receiver shutdown Signed-off-by: Sandor Szücs <[email protected]> * close schedulers to cleanup resources Signed-off-by: Sandor Szücs <[email protected]> * move sync.Mutex in auth filters Signed-off-by: Sandor Szücs <[email protected]> * fix condition when not to close the filter Signed-off-by: Sandor Szücs <[email protected]> * close routeTable on close Routing to cleanup filters that wants to cleanup resources Signed-off-by: Sandor Szücs <[email protected]> * fix: store actually the routes for later cleanup refactor: public -> private Signed-off-by: Sandor Szücs <[email protected]> * remove mutexes that are not needed Signed-off-by: Sandor Szücs <[email protected]> * add docs Signed-off-by: Sandor Szücs <[email protected]> * move closing as suggested Signed-off-by: Sandor Szücs <[email protected]> * use io.Closer compliant interface Signed-off-by: Sandor Szücs <[email protected]> * doc: fix comment Signed-off-by: Sandor Szücs <[email protected]> * refactor: use io.Closer as interface composite fix: dev tutorial for FilterCloser filters Signed-off-by: Sandor Szücs <[email protected]> --------- Signed-off-by: Sandor Szücs <[email protected]>
- Loading branch information
Showing
9 changed files
with
512 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.