Create python TcpSocketServer from existing socket

21 Views Asked by At

Suppose I have an existing socket, say that is passed in as a file descriptor from systemd socket activation. How would I use the socketserver module to create a socketserver.TcpServer or socketserver.UnixStreamServer that utilizes the existing socket instead of listening on a new one?

0

There are 0 best solutions below