Skip to content

Commit

Permalink
fix gthread worker
Browse files Browse the repository at this point in the history
under Python 3.8 and sup exception is ValueError when fd has already
been cleared by the system.

fix #3029
  • Loading branch information
benoitc committed Jul 18, 2023
1 parent 547f856 commit 86d85cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gunicorn/workers/gthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def murder_keepalived(self):
except KeyError:
# already removed by the system, continue
pass
except ValueError:
# already removed by the system continue
pass

# close the socket
conn.close()
Expand Down

0 comments on commit 86d85cb

Please sign in to comment.