Skip to content

Add configurable timeout for HTTP requests #258

Description

@DDeyanov

Currently I'm not able to configure the timeout for GET and POST HTTP requests in the Emitter. This sometimes creates problems because in case of networking issues or unresponsive collector the requests are hanging indefinitely.

I'd like to be able to configure this timeout by passing it's value to the Emitter during initialization.

We've worked around this issue in some cases by wrapping the events emitting code with python signals and firing an alarm after some predefined timeout which suspends the code execution, but this approach works only if the code is running in the main thread.

If you like the proposal, I'm happy to send a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementNew features or improvements to existing features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions