Cool. Since we do have UNIX + SSL, maybe we should provide an example?
Because that would require duplicating the logic in create_datagram_endpoint(), which is totally separate (all the way down to the I/O callbacks).Feel free to add a feature request to the tracker for this though. Be sure to indicate an actual use case (rather than just abstract interest). E.g. do you expect to need this in OpenStack? How?
sock = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
sock.setblocking(False)sock.connect(os.environ["NOTIFY_SOCKET"])
transport, protocol = loop.create_datagram_endpoint(
lambda: WatchDogClientProtocol(loop),
sock=sock)
2017-08-17 9:21 GMT+02:00 Ludovic Gasc <gml...@gmail.com>:
> I will follow the official process to contribute in CPython to add that.
I can help you on that part if you want ;-)