mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-02 22:54:50 +03:00
Refactor delayed verdict handling and add configurable retries (#52)
Extract HandleDelayedVerdict() to eliminate duplication and make retry count and polling time configurable. Add delayed verdict handling to SendRequestEnd with unit tests.
This commit is contained in:
@@ -72,6 +72,8 @@ typedef struct NanoAttachment {
|
||||
unsigned int res_header_thread_timeout_msec; ///< Response header processing timeout in milliseconds.
|
||||
unsigned int res_body_thread_timeout_msec; ///< Response body processing timeout in milliseconds.
|
||||
unsigned int waiting_for_verdict_thread_timeout_msec; ///< Wait thread processing timeout in milliseconds.
|
||||
unsigned int hold_verdict_retries; ///< Number of retries when handling delayed verdict.
|
||||
unsigned int hold_verdict_polling_time; ///< Polling time in milliseconds between retries when handling delayed verdict.
|
||||
unsigned int metric_timeout_timeout; ///< Metric timeout in milliseconds.
|
||||
NanoHttpInspectionMode inspection_mode; ///< Default inspection mode.
|
||||
unsigned int num_of_nano_ipc_elements; ///< Number of NANO IPC elements.
|
||||
|
||||
Reference in New Issue
Block a user