Skip to content

Timeout urlopen #99

@tonnico

Description

@tonnico

In issue #64 already pointed.
Does it hurt to increase the timeout in general for the entire library? e.g. to 10 seconds?

I monkeypatch (pytest) it for now as a workaround.

def patched_urlopen(url, **_):
    return urlopen(url, timeout=10)
monkeypatch.setattr("openapi_spec_validator.handlers.urlopen", patched_urlopen)
validate_spec_url(url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions