Skip to content

Commit

Permalink
Merge pull request #574 from ChrisCummins/feature/grpc-message-sizes
Browse files Browse the repository at this point in the history
[service] Loosen gRPC constraints on message sizes.
  • Loading branch information
ChrisCummins authored Feb 16, 2022
2 parents 8a3f963 + debd0f8 commit 1d095e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compiler_gym/service/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@
from compiler_gym.util.truncate import truncate_lines

GRPC_CHANNEL_OPTIONS = [
# Raise the default inbound message filter from 4MB.
("grpc.max_receive_message_length", 512 * 1024 * 1024),
# Disable the inbound message length filter to allow for large messages such
# as observations.
("grpc.max_receive_message_length", -1),
# Fix for "received initial metadata size exceeds limit"
("grpc.max_metadata_size", 512 * 1024),
# Spurious error UNAVAILABLE "Trying to connect an http1.x server".
# https://putridparrot.com/blog/the-unavailable-trying-to-connect-an-http1-x-server-grpc-error/
("grpc.enable_http_proxy", 0),
Expand Down

0 comments on commit 1d095e2

Please sign in to comment.