Skip to content

[ISSUE] HTTPTimeoutSeconds wrong default #1294

Description

@elgohr

According to documentation HTTPTimeoutSeconds is 60s.

// Number of seconds for HTTP timeout. Default is 60 (1 minute).

When I use a workspace client, without any configuration, it times out after 30s

Post "https://***.azuredatabricks.net/api/2.0/repos": request timed out after 30s of inactivity
        	Test:       	TestTimeout
--- FAIL: TestTimeout (32.06s)

When I set the timeout to HTTPTimeoutSeconds: 60 everything works fine (with timeout 60s).

I spotted the 30s in

cfg.HTTPTimeout = time.Duration(orDefault(int(cfg.HTTPTimeout), int(30*time.Second)))

Is this a duplication to
cfg.HTTPTimeout = time.Duration(orDefault(int(cfg.HTTPTimeout), int(60*time.Second)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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