Closed graingert closed 3 years ago
Python 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ephemeral_port_reserve >>> v = ephemeral_port_reserve.reserve() Exception ignored in: <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 46737), raddr=('127.0.0.1', 37292)> Traceback (most recent call last): File "/home/graingert/.virtualenvs/testing38/lib/python3.8/site-packages/ephemeral_port_reserve.py", line 48, in reserve s.accept() ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 46737), raddr=('127.0.0.1', 37292)>