mirror of
https://github.com/openappsec/attachment.git
synced 2026-01-02 22:54:50 +03:00
add getter functions for timeout
This commit is contained in:
@@ -622,3 +622,22 @@ freeCompressedBody(NanoAttachment *attachment, HttpSessionData *session_data, Ht
|
||||
{
|
||||
nano_free_compressed_body(attachment, bodies, session_data);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
GetRequestProcessingTimeout(NanoAttachment *attachment)
|
||||
{
|
||||
if (attachment == NULL) {
|
||||
return 3000;
|
||||
}
|
||||
return attachment->req_max_proccessing_ms_time;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
GetResponseProcessingTimeout(NanoAttachment *attachment)
|
||||
{
|
||||
if (attachment == NULL) {
|
||||
return 3000;
|
||||
}
|
||||
return attachment->res_max_proccessing_ms_time;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user