Skip to content

Commit

Permalink
add buffer check back
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc-pace committed Sep 21, 2023
1 parent e1c6f55 commit b322b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nameko_grpc/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def headers_to_send(self, defer_until_data=True):
if self.headers_sent or len(self.headers) == 0:
return False

if defer_until_data and self.queue.empty():
if defer_until_data and self.queue.empty() and self.buffer.empty():
return False

self.headers_sent = True
Expand Down

0 comments on commit b322b9d

Please sign in to comment.