mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Match psutil port open checking behavior to that of socket test, and update tests. (#3589)
* Match psutil port open checking behavior to that of socket test, and update tests. * Update docstring
This commit is contained in:
committed by
Peter Eckersley
parent
4bc3c747cb
commit
e1da0efb8a
@@ -123,7 +123,8 @@ def already_listening_psutil(port, renewer=False):
|
||||
return False
|
||||
|
||||
listeners = [conn.pid for conn in net_connections
|
||||
if conn.status == 'LISTEN' and
|
||||
if (conn.status == 'LISTEN' or
|
||||
conn.status == 'TIME_WAIT') and
|
||||
conn.type == socket.SOCK_STREAM and
|
||||
conn.laddr[1] == port]
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user