mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add operation_timeout and command_timeout storage backend options
This commit is contained in:
parent
507974a1d8
commit
824b91216f
5 changed files with 22 additions and 6 deletions
|
@ -10,6 +10,17 @@ export {
|
|||
type BackendOptions: record {
|
||||
## The serializer used for converting Zeek data.
|
||||
serializer: Storage::Serializer &default=Storage::STORAGE_SERIALIZER_JSON;
|
||||
|
||||
## Timeout for connection attempts to the backend. Connection attempts
|
||||
## that exceed this time should return
|
||||
## :zeek:see:`Storage::CONNECTION_FAILED`. Not all backends will support
|
||||
## setting timeouts.
|
||||
connect_timeout: interval &default=5 sec;
|
||||
|
||||
## Timeout for operation requests sent to the backend. Operations that
|
||||
## exceed this time should return :zeek:see:`Storage::TIMEOUT`. Not all
|
||||
## backends will support setting timeouts.
|
||||
operation_timeout: interval &default=5 sec;
|
||||
};
|
||||
|
||||
## Record for passing arguments to :zeek:see:`Storage::Async::put` and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue