This commit is contained in:
gitadmin committed 2016-05-30 14:44:56 +03:00
1 parent 568d49d644
commit 36b5f1971c
2 files changed
+12 -1

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import socketserver
from .. import handler.smtp as h_smtp
class SmtpServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
# Ctrl-C will cleanly kill all spawned threads
daemon_threads = True
# much faster rebinding
allow_reuse_address = True
def __init__(self, server_address, RequestHandlerClass):
socketserver.TCPServer.__init__(self, server_address, RequestHandlerClass)