Description:
Consider the possibility of also allowing AF_UNIX unix-socket connections to a nbd-server also (maybe also rbd-client, if the rbd-protocol also has the same ability)
Since Windows-10 1803 Windows allows for usable AF_UNIX unix-sockets.
AF_UNIX sockets can be used when the processes (storport-wnbd-client and nbd-server) are local.
An emulated socketpair() is also said to be do-able. (but some advanced things like abstract unix-sockets are not do-able)
Advantages include:
- A performance benefit is to be expected as AF_UNIX sockets avoid the network packetization overhead that happens over TCP/IP layers. Peers communicate over unix-socket at the session-layer.
- avoids exposing the nbd-server tcp port over the network
- filesystem permissions safeguard the socket.
- TCP connections need layer-4 ACK-keep-alives going back and forth.
References
Misc
Description:
Consider the possibility of also allowing AF_UNIX unix-socket connections to a nbd-server also (maybe also rbd-client, if the rbd-protocol also has the same ability)
Since Windows-10 1803 Windows allows for usable AF_UNIX unix-sockets.
AF_UNIX sockets can be used when the processes (storport-wnbd-client and nbd-server) are local.
An emulated socketpair() is also said to be do-able. (but some advanced things like abstract unix-sockets are not do-able)
Advantages include:
References
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
https://gitlab.gnome.org/GNOME/glib/-/issues/2487
https://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg18854.html
AF_UNIX abstract on Windows do not work microsoft/WSL#4240
Misc
https://gitlab.freedesktop.org/spice/spice/-/issues/76