Skip to content

Commit

Permalink
Set default_authority for all grpc channels.
Browse files Browse the repository at this point in the history
This ensures tunneled grpc connections can still be routed to the intended host.
  • Loading branch information
mikewyer committed Jan 15, 2025
1 parent 961d1a0 commit 5578062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weaviate/connect/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def _grpc_channel(self, proxies: Dict[str, str], grpc_msg_size: Optional[int]) -
opts = [
("grpc.max_send_message_length", grpc_msg_size),
("grpc.max_receive_message_length", grpc_msg_size),
("grpc.default_authority", self.grpc.host),
]

if (p := proxies.get("grpc")) is not None:
Expand Down

0 comments on commit 5578062

Please sign in to comment.