Created
August 8, 2021 10:19
-
-
Save fpaupier/cf7b9ee2583bc61bc0ef75a912500558 to your computer and use it in GitHub Desktop.
A Non working gRPC server initialization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import grpc | |
from concurrent import futures | |
server = grpc.server( | |
futures.ProcessPoolExecutor(max_workers=5), # ← HERE: Would be ideal but does not work. | |
options=[ # See https://github.com/grpc/grpc/issues/14436 | |
("grpc.max_send_message_length", -1), | |
("grpc.max_receive_message_length", -1), | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment