Skip to content

Set timeout (issue from pfsense_fauxapi) #4

@ndejong

Description

@ndejong

This issue has been copied over from - ndejong/pfsense_fauxapi#76


Hello!

Are you able to set a timeout somewhere if the request is failing?
Let's say if the pfSense-machine is down.

fapi = PfsenseFauxapi(
    ip,
    faux_apikey,
    faux_apisecret
)
try:
    config = fapi.config_get()
except:
    config = None

The request is running for approx 30-40 seconds before moving on (I'm looping this code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions