Skip to content
Permalink
Browse files

fix(frontend): fix frontend blocking behavior

  • Loading branch information...
hanxiao committed Oct 11, 2019
1 parent d60a24a commit c23ea61f8319e1c40aa91324abd05ea34ba1d6c9
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/service/frontend.py
@@ -125,8 +125,8 @@ def get_response(num_recv, blocked=False):
with self.zmq_context as zmq_client:

for request in request_iterator:
num_recv = max(self.pending_request - self.args.max_pending_request, 0)
yield from get_response(num_recv, num_recv > 0)
num_recv = max(self.pending_request - self.args.max_pending_request, 1)
yield from get_response(num_recv, num_recv > 1)

zmq_client.send_message(self.add_envelope(request, zmq_client), **self.send_recv_kwargs)
self.pending_request += 1

0 comments on commit c23ea61

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