Skip to content

Commit

Permalink
Adjust server tolerance to frequent keepalive pings
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Feb 12, 2024
1 parent 7821c59 commit 29e83ec
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
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

0 comments on commit 29e83ec

Please sign in to comment.