TheHive4py icon indicating copy to clipboard operation
TheHive4py copied to clipboard

Requests Timeout value is not set by default - script hangs infinitely

Open jkb-s opened this issue 4 years ago • 0 comments

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

  1. Create an API call
  2. Loop api call
  3. 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

jkb-s avatar Jul 16 '21 10:07 jkb-s