Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust server tolerance to frequent keepalive pings #451

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ See the fragment files in the `changelog.d directory`_.

.. scriv-insert-here

.. _changelog-0.7.9:

0.7.9 — 2024-02-12
==================

Fixed
-----

- Adjusted server tolenace to more frequent keepalive pings, mitigating
``ENHANCE_YOUR_CALM`` errors by allowing shorter intervals between pings.

.. _changelog-0.7.8:

0.7.8 - 2024-02-12
Expand Down
2 changes: 1 addition & 1 deletion a3m/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.7.8"
__version__ = "0.7.9"

__all__ = ["__version__"]
10 changes: 9 additions & 1 deletion a3m/server/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,15 @@ def __init__(
debug=debug,
)
self.grpc_executor = grpc_executor
self.grpc_server = grpc.server(grpc_executor)
self.grpc_server = grpc.server(
grpc_executor,
options=[
# Adjusted server tolerance to more frequent keepalive pings,
# mitigating ENHANCE_YOUR_CALM errors by allowing shorter
# intervals between pings.
("grpc.http2.min_ping_interval_without_data_ms", 100),
],
)
self.grpc_port = self.grpc_server.add_insecure_port(bind_address)

self._mount_services()
Expand Down
Loading