Skip to content

Failure to clone git repository - server sent https2 GOAWAY #360

Open
@miketonks

Description

@miketonks

Source Controller seems to use http2 keep alive when cloning git repository.

Error message:

unable to clone 'https://example.com/test/repo, error: http2: server sent GOAWAY and closed the connection; LastStreamID=1999, ErrCode=NO_ERROR, debug=""

For short poll intervals (I tried 1m and 1m40s) we get a small but repeatable number of failures, exactly every 1999 requests. This is due to nginx server config, which will reset connection after maximum is reached. However client can request keepalive or not, and it would be better to not use it in this case.

Default go http client enables keepalive with a time of 90s

Using keepalive for polling seems incorrect. Can we disable keepalive please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/gitGit related issues and pull requestsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions