details = "Received message larger than max (188400012 vs. 4194304)"

1 这个是由于grpc默认的传输数据大小为4M,因此须要修改能接收数据的大小 MAX_MESSAGE_LENGTH=10010241024 能够传输100Mserver

grpcServer = grpc.server(futures.ThreadPoolExecutor(max_workers=4),options=[('grpc.max_send_message_length', MAX_MESSAGE_LENGTH), ( 'grpc.max_receive_message_length', MAX_MESSAGE_LENGTH)])rpc

相关文章
相关标签/搜索