Skip to content

timeout is hardcoded #41

@gauchj

Description

@gauchj

We found that ansible could not make a connection with one of our switches with a strange timeout error. After some digging, I found this in session.py:

response = s.post( base_url + "login", data=login_data, verify=False, timeout=5, proxies=s.proxies, headers=login_headers, )

The timeout for a login is set to 5 seconds, but for some reason, the login takes about 16 s on one of our switches. Changing the timeout to a longer value makes the playbook work. Maybe this timeout should be a configuratble variable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions