#1010620 ITP: golang-github-ftrvxmtrx-fd -- Pass Go file descriptors and connections between different OS processes. #1010620
- Package:
- wnpp
- Source:
- wnpp
- Submitter:
- "Robert Greener"
- Date:
- 2022-05-31 09:15:05 UTC
- Severity:
- wishlist
- Blocked By:
-
Bug Title 1010622 3
RFS: golang-github-ftrvxmtrx-fd/0.0~git20150925.c6d8003-1 [ITP] -- Pass Go file descriptors and connections between different OS processes. (library) wishlist about 4 years ago
* Package name : golang-github-ftrvxmtrx-fd Version : 0.0~git20150925.c6d8003-1 Upstream Author : Sigrid Solveig Haflínudóttir * URL : https://github.com/ftrvxmtrx/fd * License : Expat Programming Lang: Go Description : Pass Go file descriptors and connections between different OS processes. fd Package fd provides a simple API to pass file descriptors between different OS processes. . It can be useful if you want to inherit network connections from another process without closing them. . Example scenario: • Running server receives a "let's upgrade" message• Server opens a Unix domain socket for the "upgrade"• Server starts a new copy of itself and passes Unix domain socket name• New copy starts reading data from the socket• Server sends its state over the socket, also sending the number of network connections to inherit, then it sends those connections using fd.Put()• New server copy reads the state and inherits connections using fd.Get(), checks that everything is OK and writes an "OK" message to the socket• Server receives "OK" message and kills itselfDocumentation fd on godoc.org (http://godoc.org/github.com/ftrvxmtrx/fd)
I no longer intend to package this.