Skip to content

Commit

Permalink
Fix h3_request to work with delays (envoyproxy#31842)
Browse files Browse the repository at this point in the history
Signed-off-by: Raven Black <[email protected]>
  • Loading branch information
ravenblackx authored Jan 16, 2024
1 parent 8bdba29 commit d7ef6c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/h3_request/h3_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ async def request(
],
end_stream=not post_stdin,
)
self.transmit()
if post_stdin:
async for data in _stream_stdin_generator():
self._http.send_data(stream_id=stream_id, data=data, end_stream=False)
self.transmit()
self._http.send_data(stream_id=stream_id, data=b'', end_stream=True)
self.transmit()

await future

Expand Down

0 comments on commit d7ef6c0

Please sign in to comment.