Skip to content

don't flush on every body part#214

Open
artemredkin wants to merge 1 commit intoswift-server:mainfrom
artemredkin:dont_flush_on_every_part
Open

don't flush on every body part#214
artemredkin wants to merge 1 commit intoswift-server:mainfrom
artemredkin:dont_flush_on_every_part

Conversation

@artemredkin
Copy link
Collaborator

Right now we call flush on every body part write, this can be suboptimal, closes #203

Motivation:
Library users can write data in small chunk, in this case we are not buffering enough data, better solution would be to buffer at the NIO level in this case.

Modifications:
Body part write is not not flushing, just write

Result:
Body part writes are not flushing anymore

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncHTTPClient calls flush after writing each part of the HTTP message

3 participants