Skip to content

Commit

Permalink
fix(gateway): fix #435 empty request iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed May 21, 2020
1 parent 59282cf commit 17f586f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jina/peapods/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def prefetch_req(num_req, fetch_to):
'ask client to reduce "--batch-size"')
is_req_empty = prefetch_req(self.args.prefetch, prefetch_task)
if is_req_empty:
self.logger.error('receive an empty stream from the client! please check your client\'s input_fn')
self.logger.error('receive an empty stream from the client! '
'please check your client\'s input_fn, '
'you can use "PyClient.check_input(input_fn())"')
return

while not (zmqlet.msg_sent == zmqlet.msg_recv != 0 and is_req_empty):
Expand Down

0 comments on commit 17f586f

Please sign in to comment.