-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StreamWriter expects to be called on some internal EventLoop #200
Comments
After a chat with @ktoso, I noticed that this ticket isn't clear enough. The rules should be:
IMHO fixing this issue is blocking 1.2.0, we cannot possibly release it as on |
I started looking into this a bit btw, may have more time soon to dedicate to this. |
@artemredkin Not sure, the |
when this gets fixed, we also need to undo this hack: https://github.com/swift-server/async-http-client/pull/219/files#diff-bd03a2521c79f3da4bd5825512ca9979R1739-R1741 |
The
HTTPClient.Body.StreamWriter
that you get when using the default.stream(length: contentLength, { thisStreamWriterHere in })
expects to be called on the internalEventLoop
that belongs to the underlyingChannel
. The user however doesn't get access to thatChannel
at all so it's impossible to use this API :(.This needs a fix really soon.
The text was updated successfully, but these errors were encountered: