Skip to content

Commit 86d85cb

Browse files
committed
fix gthread worker
under Python 3.8 and sup exception is ValueError when fd has already been cleared by the system. fix #3029
1 parent 547f856 commit 86d85cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gunicorn/workers/gthread.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ def murder_keepalived(self):
180180
except KeyError:
181181
# already removed by the system, continue
182182
pass
183+
except ValueError:
184+
# already removed by the system continue
185+
pass
183186

184187
# close the socket
185188
conn.close()

0 commit comments

Comments
 (0)