Fix socketserver implementation.