Skip to content

check final response in poll_informational#889

Open
zh-jq wants to merge 1 commit intohyperium:masterfrom
zh-jq:poll-informational
Open

check final response in poll_informational#889
zh-jq wants to merge 1 commit intohyperium:masterfrom
zh-jq:poll-informational

Conversation

@zh-jq
Copy link
Copy Markdown

@zh-jq zh-jq commented Apr 7, 2026

Make sure poll_informational returns Poll::Ready(None) after the final response received. So the caller can then use the ResponseFuture::poll() method to get the final response.

The lock in OpaqueStreamRef get released when poll_informational returned, so if it didn't returns Poll::Ready(None) on received final response header, the caller has to call ResponseFuture::poll() every time to check the final response, this may get some informational response get ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant