-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cowboy_stream_h problems in grpc streaming #1430
Comments
You can't use read_body with auto at the moment (or ever, to be honest, it's not really the same thing) but you can send the message directly. Now there's a It should special case |
I am thinking of reworking I think we should also be able to request a minimum flow value when doing this. So perhaps a command like I am thinking of making new messages rather than reuse |
@essen Then we need to store the data as a list of binary instead binary like what we do now, right? And when |
In active mode, you don't call And either way there's never a need to use lists of binaries when you can just do binary appends. That's how |
I got two problems when using cowboy_stream_h to implement grpc streaming calls:
auto
mode, but got an error when callingcowboy_req:read_body(Req, [{length, auto}])
. I believe this is because this linecowboy/src/cowboy_req.erl
Line 520 in 13cf0ba
fin
to info indicate the streaming request is done. But currentcowboy_stream_h
can't handle this becausecowboy/src/cowboy_stream_h.erl
Lines 161 to 166 in 13cf0ba
fin
, like adding this as before the firstread_body
info
:The text was updated successfully, but these errors were encountered: