summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-22 08:08:44 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-22 08:08:44 (GMT)
commitf86e8ef33ec22475a051b783b19ee22c5bd3de72 (patch)
tree16617904c9e72eee7e7eea683f7055815c0fe9e8 /Doc/lib
parente0273de4329d0f442c696891b856d91721816d72 (diff)
downloadcpython-f86e8ef33ec22475a051b783b19ee22c5bd3de72.zip
cpython-f86e8ef33ec22475a051b783b19ee22c5bd3de72.tar.gz
cpython-f86e8ef33ec22475a051b783b19ee22c5bd3de72.tar.bz2
Patch #550765: Add daemon_threads flag.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libsocksvr.tex8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/lib/libsocksvr.tex b/Doc/lib/libsocksvr.tex
index 1e51cd6..c51b664 100644
--- a/Doc/lib/libsocksvr.tex
+++ b/Doc/lib/libsocksvr.tex
@@ -37,6 +37,14 @@ handler class. Finally, call the \method{handle_request()} or
\method{serve_forever()} method of the server object to process one or
many requests.
+When inheriting from \class{ThreadingMixIn} for threaded connection
+behavior, you should explicitly declare how you want your threads
+to behave on an abrupt shutdown. The \class{ThreadingMixIn} class
+defines an attribute \var{daemon_threads}, which indicates whether
+or not the server should wait for thread termination. You should
+set the flag explicitly if you would like threads to behave
+autonomously.
+
Server classes have the same external methods and attributes, no
matter what network protocol they use: