Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Async: Redo HTTPResponseWriter writes to not use DispatchIO #3

Open
helje5 opened this issue Nov 12, 2017 · 0 comments
Open

Async: Redo HTTPResponseWriter writes to not use DispatchIO #3

helje5 opened this issue Nov 12, 2017 · 0 comments

Comments

@helje5
Copy link
Member

helje5 commented Nov 12, 2017

We may be able to avoid a lot of copying when we use a DispatchSource to wait for the socket being ready. And then do the sends manually until EWOULDBLOCK. A buffer is maintained for pipelining anyways.
(it is a little harder than it sounds because we may need to split blocks).

When doing this, we should also prepare for writev in the same run. (and maybe add API which supports that on the user side)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant