mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
fix formatting and some naming in newsfragments (#754)
This commit is contained in:
@ -1 +1 @@
|
||||
Limit concurrency in `push_identify_to_peers` to prevent resource congestion under high peer counts.
|
||||
Limit concurrency in ``push_identify_to_peers`` to prevent resource congestion under high peer counts.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Fixed several flow-control and concurrency issues in the `YamuxStream` class. Previously, stress-testing revealed that transferring data over `DEFAULT_WINDOW_SIZE` would break the stream due to inconsistent window update handling and lock management. The fixes include:
|
||||
Fixed several flow-control and concurrency issues in the ``YamuxStream`` class. Previously, stress-testing revealed that transferring data over ``DEFAULT_WINDOW_SIZE`` would break the stream due to inconsistent window update handling and lock management. The fixes include:
|
||||
|
||||
- Removed sending of window updates during writes to maintain correct flow-control.
|
||||
- Added proper timeout handling when releasing and acquiring locks to prevent concurrency errors.
|
||||
- Corrected the `read` function to properly handle window updates for both `read_until_EOF` and `read_n_bytes`.
|
||||
- Added event logging at `send_window_updates` and `waiting_for_window_updates` for better observability.
|
||||
- Corrected the ``read`` function to properly handle window updates for both ``read_until_EOF`` and ``read_n_bytes``.
|
||||
- Added event logging at ``send_window_updates`` and ``waiting_for_window_updates`` for better observability.
|
||||
|
||||
@ -1 +1 @@
|
||||
Refactored gossipsub heartbeat logic to use a single helper method `_handle_topic_heartbeat` that handles both fanout and gossip heartbeats.
|
||||
Refactored gossipsub heartbeat logic to use a single helper method ``_handle_topic_heartbeat`` that handles both fanout and gossip heartbeats.
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
Reordered the arguments to `upgrade_security` to place `is_initiator` before `peer_id`, and made `peer_id` optional.
|
||||
Reordered the arguments to ``upgrade_security`` to place ``is_initiator`` before ``peer_id``, and made ``peer_id`` optional.
|
||||
This allows the method to reflect the fact that peer identity is not required for inbound connections.
|
||||
|
||||
@ -1 +1 @@
|
||||
Uses the `decapsulate` method of the `Multiaddr` class to clean up the observed address.
|
||||
Uses the ``decapsulate`` method of the ``Multiaddr`` class to clean up the observed address.
|
||||
|
||||
@ -1 +1 @@
|
||||
added peer exchange and backoff logic as part of Gossipsub v1.1 upgrade
|
||||
Added peer exchange and backoff logic as part of Gossipsub v1.1 upgrade
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Add timeout wrappers in:
|
||||
1. multiselect.py: `negotiate` function
|
||||
2. multiselect_client.py: `select_one_of` , `query_multistream_command` functions
|
||||
1. ``multiselect.py``: ``negotiate`` function
|
||||
2. ``multiselect_client.py``: ``select_one_of`` , ``query_multistream_command`` functions
|
||||
to prevent indefinite hangs when a remote peer does not respond.
|
||||
|
||||
@ -1 +1 @@
|
||||
align stream creation logic with yamux specification
|
||||
Align stream creation logic with yamux specification
|
||||
|
||||
@ -1 +1 @@
|
||||
Fixed an issue in `Pubsub` where async validators were not handled reliably under concurrency. Now uses a safe aggregator list for consistent behavior.
|
||||
Fixed an issue in ``Pubsub`` where async validators were not handled reliably under concurrency. Now uses a safe aggregator list for consistent behavior.
|
||||
|
||||
Reference in New Issue
Block a user