← 返回首页
Crash when fast reloading web-site · Issue #177 · fhessel/esp32_https_server · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Crash when fast reloading web-site #177

New issue
New issue

Description

Hi all,

I ran into a problem, when I had a client fast refreshing the loading of the web-site hosted on an ESP:

The connection was opened and then the client closed the connection (due to the refresh). This was written into the log ("An receive error occured, FID="), but in the HTTPConnection::loop(), this was not checked, the request still was answered:

So i changed the line before the switch to:

if (!isError() && _clientState != CSTATE_CLOSED)

Which solved the crashes...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.