Skip to content

hugo serve hangs on shutdown if a tab is open in Firefox #12686

Open
@hkoosha

Description

@hkoosha

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.129.0+extended linux/amd64 BuildDate=unknown

Does this issue reproduce with the latest release?

Yes

The issue

When running Hugo's builtin web-server and visiting localhost:1313 with Firefox, then after clicking any link and navigating through the website, apparently FF keeps a connection to Hugo open. Then, switching back to Hugo and trying to shut it down via CTRL+C, it takes a very long time until Hugo finally shuts down (almost forever). Other browsers do not do this.

One solution is to chase every Hugo tab in FF and close them, then it shuts down quickly; but it's disrupting a bit.

Does it make sense to ignore open connections on CTRL+c?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions