qwj / python-proxy

HTTP/HTTP2/HTTP3/Socks4/Socks5/Shadowsocks/ShadowsocksR/SSH/Redirect/Pf TCP/UDP asynchronous tunnel proxy implemented in Python 3 asyncio.
MIT License
1.93k stars 323 forks source link

Compatible with Python 3.11 #163

Closed Jonney closed 5 months ago

Jonney commented 1 year ago

In Python 3.11, asyncio.sslproto.SSLProtocol inherits from asyncio.protocols.BufferedProtocol. In SSLProtocol, data_received() is no longer used and has been replaced with get_buffer() and buffer_updated().