Skip to content
Permalink
Browse files

fix(stream-call): hungry mode to receive responses

  • Loading branch information...
numb3r3 committed Oct 14, 2019
1 parent 0ac92e4 commit 01531f74ed5e7fcbd2c5d4302ff27c8627af9284
Showing with 5 additions and 0 deletions.
  1. +5 −0 gnes/service/frontend.py
@@ -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:

0 comments on commit 01531f7

Please sign in to comment.
You can’t perform that action at this time.