You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ensure response stream is only closed after request stream is closed #595
When handling an invocation over HTTP, the SDK must not close the HTTP response stream before the request stream has been fully consumed/closed. If the response stream is closed while the request stream is still open, the runtime may interpret this as a connection abort and log warnings or trigger unnecessary retries.
After the SDK has flushed all output to the response stream, it should drain/await the request stream EOS (end-of-stream) before closing the response stream. This ensures a clean HTTP connection lifecycle:
SDK finishes writing all response data
SDK waits for the request stream to be fully closed (read until EOF or done)
SDK closes the response stream
Action items
Review the HTTP handler code to check if the response stream can be closed before the request stream is fully consumed
If susceptible, implement a fix to drain the request stream before closing the response stream
Activity
tillrohrmann commentedon Jun 1, 2026
@slinkydeveloper do you know whether this is a problem for the Java SDK?
slinkydeveloper commentedon Jul 16, 2026
Most likely solved this one too when we moved to the new state machine, if you see it again reopen it