Skip to content

1.24.0

Latest

Choose a tag to compare

@joamag joamag released this 14 Feb 00:05
· 2 commits to master since this release
1ce4c5b

Added

  • ConnectionCompat mixin in mixin.py extracting backward-compatible Connection delegation methods (socket, renable, is_restored(), enable_read(), etc.) from StreamProtocol
  • ConnectionCompat applied to TransportStream so it exposes is_restored() and other throttle-related methods
  • Throttle unit tests for proxy server covering both Connection and TransportStream paths

Changed

  • StreamProtocol now inherits from ConnectionCompat mixin instead of defining delegation methods inline
  • _throttle() in ProxyServer and SocksServer resolves TransportStream to its _protocol for conn_map key lookup

Fixed

  • AttributeError: 'TransportStream' object has no attribute 'is_restored' in proxy throttle callbacks when using protocol-based architecture