This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Bob_2021
Recipients Bob_2021, asvetlov, yselivanov
Date 2021-02-10.01:56:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1612922194.82.0.214805555542.issue43183@roundup.psfhosted.org>
In-reply-to
Content
I wrote a simple proxy with Python3.8 and Asyncio, but I found it couldn't handle passive close correctly, a lot of CLOSE_WAIT sockets couldn't be released. I had trouble shot it for a long time with no progress.

netstat -anop tcp | grep CLOSE_WAIT

tcp6       0      0 64.XXX.XXX.XXX:80        113.58.229.12:46996     CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        222.137.35.237:54914    CLOSE_WAIT  10485/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        119.39.47.229:53882     CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        123.14.254.238:49262    CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        121.57.230.51:35036     CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        124.235.138.253:44882   CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        36.5.157.219:38006      CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
tcp6       0      0 64.XXX.XXX.XXX:80        150.255.5.121:39288     CLOSE_WAIT  10486/python3.8      off (0.00/0/0)
History
Date User Action Args
2021-02-10 01:56:34Bob_2021setrecipients: + Bob_2021, asvetlov, yselivanov
2021-02-10 01:56:34Bob_2021setmessageid: <1612922194.82.0.214805555542.issue43183@roundup.psfhosted.org>
2021-02-10 01:56:34Bob_2021linkissue43183 messages
2021-02-10 01:56:34Bob_2021create