FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Drain Request Buffer After Calling the Handler Function · Issue #4 · fhessel/esp32_https_server · GitHub

Repository navigation

Drain Request Buffer After Calling the Handler Function #4

Closed

Description

Currently, when the handler function is called and does not consume the whole request body (either due to an error or intended), the request body buffer will not be cleared (up to Content-Length bytes or its actual end).
This is especially a problem with Connection: keep-alive requests, as parsing the header line will start exactly where the callback function stopped consuming the body.
This should be changed to get the server more reliable, even if the callback function terminated unexpectedly.

Activity

  1. self-assigned this
    on Jan 8, 2018
  2. fhessel commented on Mar 26, 2018

    OwnerAuthor

    The server will now drain the buffer and just print an error message to the log to notify the developer. Maybe this behavior has to be investigated in depth, as it might also be an alternative to close the connection as the handler clearly misbehaves here and that may be exploited in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL