python-trio / trio-websocket

WebSocket client and server implementation for Python Trio
MIT License
70 stars 25 forks source link

server: close TCP connection after CloseConnection event #150

Closed belm0 closed 3 years ago

belm0 commented 3 years ago

Fixes #115 and #147.

belm0 commented 3 years ago

I have no idea what I'm doing-- but this change fixes the shutdown issue with asyncio client, and fixes all of the broken autobahn tests.

If this change is OK I should add a unit test. (done)

@njsmith does this one line change look harmful?

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 163


Totals Coverage Status
Change from base Build 155: 0.02%
Covered Lines: 497
Relevant Lines: 519

💛 - Coveralls