Skip to content

Upgrade to golang 1.11 to fix server context deadline exceeded #210

@lkysow

Description

@lkysow

If the Atlantis server is running and you load its UI from Chrome and then Ctrl-C the server, you see this message:

^C2018/08/04 12:27:12 server.go:391: [WARN] server: Received interrupt. Safely shutting down
[ERROR] while shutting down: context deadline exceeded

This is because Chrome will open up multiple connections and send no bytes. The current implementation of golang server won't close these connections and will assume they're still open. Eventually the context will time out and we'll get that error.

The issue (golang/go#22682) is fixed in golang 1.11 which is currently in beta but should be released in August of this year.

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