Skip to content

Commit

Permalink
server: close TCP connection after closing websocket
Browse files Browse the repository at this point in the history
Fixes #115 and #147.
  • Loading branch information
belm0 committed Feb 1, 2021
1 parent dbf819d commit a65de37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trio_websocket/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ async def _close_web_socket(self, code, reason=None):
exc = ConnectionClosed(self._close_reason)
logger.debug('%s websocket closed %r', self, exc)
await self._send_channel.aclose()
await self._close_stream()

async def _get_request(self):
'''
Expand Down

0 comments on commit a65de37

Please sign in to comment.