swift-server / swift-server/async-http-client
AsyncHTTPClient calls flush after writing each part of the HTTP message
Open
@artemredkin is already working on this.
Since May 7, 2020.
kind/enhancement
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Repeatedly calling flush doesn't seem very optimal.
HTTPClient.executecallswriteAndFlushand because the body write isn't queued until the head has been written, the flush occurs immediately after the head has been written.TaskHandler.writeBodycallswriteAndFlush.
Ideally a simple HTTP request with one ByteBuffer shouldn't need to call flush until after the end part.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.