Commit 215638ed authored by Wei Shoulin's avatar Wei Shoulin
Browse files

grpc message size to 1G

parent 5246607a
...@@ -6,8 +6,8 @@ class ServiceProxy: ...@@ -6,8 +6,8 @@ class ServiceProxy:
self.gateway = os.getenv("CSST_DFS_GATEWAY",'172.31.248.218:30880') self.gateway = os.getenv("CSST_DFS_GATEWAY",'172.31.248.218:30880')
def channel(self): def channel(self):
options = (('grpc.max_send_message_length', 1024 * 1024 * 1024 * 5), options = (('grpc.max_send_message_length', 1024 * 1024 * 1024),
('grpc.max_receive_message_length', 1024 * 1024 * 1024 * 5)) ('grpc.max_receive_message_length', 1024 * 1024 * 1024))
# channel = grpc.insecure_channel(self.gateway, options = options, compression = grpc.Compression.Gzip) # channel = grpc.insecure_channel(self.gateway, options = options, compression = grpc.Compression.Gzip)
channel = grpc.insecure_channel(self.gateway, options = options) channel = grpc.insecure_channel(self.gateway, options = options)
try: try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment