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?
Asked
Active
Viewed 13 times
0

Thayne
- 6,619
- 2
- 42
- 67
-
It doesn't look like you can do it with that module. The basic `socket` module has `socket.fromfd()`. – Barmar Jun 30 '23 at 17:11