def handle_receive(self, reader, writer, tcp_request):
try:
done, response = yield from self._handler.handle_request(reader, writer, tcp_request)
if response and len(response) > 0:
yield from writer.awrite(response)
if done:
return False
else:
return True
except Exception as e:
sys.print_exception(e)
return False
评论列表
文章目录