~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/smart/server.py

Add docstrings to all the new modules, and a few other places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
"""Server for smart-server protocol."""
 
18
 
17
19
import socket
18
20
import os
19
21
import threading
77
79
        conn.setblocking(True)
78
80
        conn.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
79
81
        handler = medium.SmartServerSocketStreamMedium(conn, self.backing_transport)
80
 
        connection_thread = threading.Thread(None, handler.serve, name='smart-server-child')
 
82
        connection_thread = threading.Thread(
 
83
            None, handler.serve, name='smart-server-child')
81
84
        connection_thread.setDaemon(True)
82
85
        connection_thread.start()
83
86