sftpd: properly handle listener accept errors

continue on temporary errors and exit from the serve loop for the
other ones
This commit is contained in:
Nicola Murino
2020-12-23 19:53:07 +01:00
parent 7ab7941ddd
commit 187a5b1908
5 changed files with 115 additions and 30 deletions

View File

@@ -140,7 +140,7 @@ func (c *Configuration) Initialize(configDir string) error {
server.status.Bindings = nil
exitChannel := make(chan error)
exitChannel := make(chan error, 1)
for _, binding := range c.Bindings {
if !binding.IsValid() {