-
Notifications
You must be signed in to change notification settings - Fork 3k
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
httpc: stream_start on an already running stream #8618
Comments
I will take a look at this one. I have a theory, but need to verify it before I say anything specific |
@sirihansen |
@Whaileee Sorry for the long delay - I missed the notification. The stream setup contains nothing "strange" as far as I can tell. But here is an example:
The inets profile has the following options:
|
In the meantime, I've found out that this scenario is the result of using pipeline/keep-alive connection or redirection. When there is an interrupt in the already established connection (ex. httpd config reload), two stream_start messages are present without stream_end in between. This indicates that the connection was interrupted and resumed. Is there an stream_end message after the occurrence of double stream_start, or is there an |
Ok. I'll have a look for stream_end or socket_closed_remotely and get back to you. |
In the few cases where the stream is terminated from the server side, we get a stream_end message. So far I have not seen any |
I wouldn't worry, if there isn't an error message then, but I suppose you can always put some logs somewhere around the places that I provided, and see exactly what is happening, and why. If that satisfies you, may I ask to close the issue? One way or the other I'm happy to help, so feel free to ask. |
Ok, as long as there is nothing "wrong" I can just ignore these messages. It would possibly be nice if the docs would say that duplicate stream_start could occur in some situations. Anyway, please feel free to close the issue! Thanks for looking into it! |
Thanks for the suggestion, this will definitely prevent confusion in the future |
Describe the bug
This is more of a question than a bug report at this time. We are using
httpc
to implement an SSE stream client. So we callhttpc:request /5
with options[{stream,self},{sync,false}]
, then we wait for{http, {RequestId, stream_start, Headers}}
, and after that we expect stream content or stream end messages. But every now and then we get anotherstream_start
message. This can happen several minutes after we set up the stream and have received the firststream_start
with the sameRequestId
. So the question is, is this normal and something that can be ignored, or should it be investigated?To Reproduce
It happens every now and then both in our test- and prod environments, but I haven't (yet) found a way to reproduce it on demand.
Expected behavior
I did expect only stream content or stream_end (or errors) after the first stream_start message.
Affected versions
26.2
Additional context
The text was updated successfully, but these errors were encountered: