Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix connection reuse in splithttp HTTP/1.1 #3485

Merged
merged 1 commit into from
Jul 1, 2024

Commits on Jun 30, 2024

  1. Fix connection reuse in splithttp HTTP/1.1

    Fix two bugs:
    
    * When the connection pool contains more than 5 dead connections, the
      write fails after 5 tries and is aborted. Instead, pull infinite
      amount of connections from the pool and when the pool is empty, fail
      the write on the first fresh connection.
    
    * When the write is retried, the request body is already drained, and
      the upload request will contain no payload at all. Fix this by
      stringifying the request eagerly.
    
    Also explicitly set content-length so that transfer-encoding: chunked is
    avoided. This really doesn't seem to matter to any CDN at all though.
    mmmray committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    8db7f6b View commit details
    Browse the repository at this point in the history