Skip to content

Commit e88c41d

Browse files
committed
Fix #609 monkey patch to handle memory leaks in sync server
1 parent a4c6ec5 commit e88c41d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pymodbus/compat.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@
5151
# module renames
5252
# ----------------------------------------------------------------------- #
5353
import socketserver
54-
54+
# #609 monkey patch for socket server memory leaks
55+
# Refer https://bugs.python.org/issue37193
56+
socketserver.ThreadingMixIn.daemon_threads = True
5557
# ----------------------------------------------------------------------- #
5658
# decorators
5759
# ----------------------------------------------------------------------- #

0 commit comments

Comments
 (0)