htparser: Handle ECONNABORTED correctly.
[ashd.git] / src / plaintcp.c
index 6524955..0592166 100644 (file)
@@ -183,6 +183,8 @@ static void listenloop(struct muth *muth, va_list args)
            if(ns < 0) {
                if(errno == EAGAIN)
                    break;
+               if(errno == ECONNABORTED)
+                   continue;
                flog(LOG_ERR, "accept: %s", strerror(errno));
                goto out;
            }