TheHive4py
TheHive4py copied to clipboard
Requests Timeout value is not set by default - script hangs infinitely
Request Type
Feature Request
Work Environment
| Question | Answer |
|---|---|
| TheHive4py version / git hash | 1.8.1 |
Problem Description
Please add parameter to allow requests timeout after specified value.
Currently any network interruption causes thehive4py to hang for long time as by default requests does not have a timeout value specified.
Steps to Reproduce
- Create an API call
- Loop api call
- Cause network interruption
Possible Solutions
Add TheHive4py global parameter to specify timeout value.
I've created a pull request: https://github.com/TheHive-Project/TheHive4py/pull/227