We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func (mp *master) retreiveFileDescriptors() error { mp.slaveExtraFiles = make([]*os.File, len(mp.Config.Addresses)) for i, addr := range mp.Config.Addresses { a, err := net.ResolveTCPAddr("tcp", addr) //a,err :=net.ResolveUnixAddr("unix",addr) //net.ResolveUnixAddr("udp",addr) if err != nil { return fmt.Errorf("Invalid address %s (%s)", addr, err) } l, err := net.ListenTCP("tcp", a) if err != nil { return err } f, err := l.File() if err != nil { return fmt.Errorf("Failed to retreive fd for: %s (%s)", addr, err) } if err := l.Close(); err != nil { return fmt.Errorf("Failed to close listener for: %s (%s)", addr, err) } mp.slaveExtraFiles[i] = f } return nil }
like this?
edit from @jpillora: to support this and stay backwards compatible, I think we add this to the Address string:
Address
Currently
:5000
0.0.0.0:5000
tcp::5000
tcp:0.0.0.0:5000
udp::5000
unix:/my/absolute/path/to/my/file.sock
The text was updated successfully, but these errors were encountered:
Edited the description, changed to a feature request
Sorry, something went wrong.
No branches or pull requests
like this?
edit from @jpillora: to support this and stay backwards compatible, I think we add this to the
Address
string:Currently
:5000
is TCP0.0.0.0:5000
,We could also support
tcp::5000
which would also be TCP0.0.0.0:5000
,tcp:0.0.0.0:5000
which would also be TCP0.0.0.0:5000
,udp::5000
which would be UDP0.0.0.0:5000
unix:/my/absolute/path/to/my/file.sock
which would be a unix socketThe text was updated successfully, but these errors were encountered: