Merge branch 'main' into refactor/replace-magic-numbers-with-named-constants

This commit is contained in:
Manu Sheel Gupta
2025-09-23 21:26:19 +05:30
committed by GitHub
66 changed files with 6592 additions and 357 deletions

View File

@ -0,0 +1,12 @@
Added experimental WebSocket transport support with basic WS and WSS functionality. This includes:
- WebSocket transport implementation with trio-websocket backend
- Support for both WS (WebSocket) and WSS (WebSocket Secure) protocols
- Basic connection management and stream handling
- TLS configuration support for WSS connections
- Multiaddr parsing for WebSocket addresses
- Integration with libp2p host and peer discovery
**Note**: This is experimental functionality. Advanced features like proxy support,
interop testing, and production examples are still in development. See
https://github.com/libp2p/py-libp2p/discussions/937 for the complete roadmap of missing features.

View File

@ -0,0 +1,2 @@
Updated all example scripts and core modules to use secure loopback addresses instead of wildcard addresses for network binding.
The `get_wildcard_address` function and related logic now utilize all available interfaces safely, improving security and consistency across the codebase.

View File

@ -0,0 +1,6 @@
enhancement: Add write lock to `YamuxStream` to prevent concurrent write race conditions
- Implements ReadWriteLock for `YamuxStream` write operations
- Prevents data corruption from concurrent write operations
- Read operations remain lock-free due to existing `Yamux` architecture
- Resolves race conditions identified in Issue #793