Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(stream-call): hungry mode to receive responses
Browse files Browse the repository at this point in the history
  • Loading branch information
felix committed Oct 14, 2019
1 parent 0ac92e4 commit 01531f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gnes/service/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def get_response(num_recv, blocked=False):
self.pending_request -= 1
yield self.remove_envelope(msg)

while zmq_client.receiver.poll(5):
msg = zmq_client.recv_message(**self.send_recv_kwargs)
self.pending_request -= 1
yield self.remove_envelope(msg)

with self.zmq_context as zmq_client:

for request in request_iterator:
Expand Down

0 comments on commit 01531f7

Please sign in to comment.