Skip to content

Commit

Permalink
3.7 deamon threads fix
Browse files Browse the repository at this point in the history
#https://bugs.python.org/issue37788
    #prometheus/client_python#356
    daemon_threads = True # fix for python 3.7 please see links above for details
  • Loading branch information
wojons authored Aug 13, 2020
1 parent 55abd30 commit be3ef13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnslib/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,13 @@ def log_data(self,dnsobj):

class UDPServer(socketserver.ThreadingMixIn,socketserver.UDPServer):
allow_reuse_address = True
#https://bugs.python.org/issue37788
#https://github.com/prometheus/client_python/pull/356
daemon_threads = True # fix for python 3.7 please see links above for details

class TCPServer(socketserver.ThreadingMixIn,socketserver.TCPServer):
allow_reuse_address = True
daemon_threads = True

class DNSServer(object):

Expand Down

0 comments on commit be3ef13

Please sign in to comment.