]> www.dolda2000.com Git - ashd.git/commitdiff
htparser: Handle ECONNABORTED correctly.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 3 Feb 2015 04:58:12 +0000 (05:58 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 3 Feb 2015 04:58:12 +0000 (05:58 +0100)
src/plaintcp.c
src/ssl-gnutls.c

index 652495567e783ac892e0280a05858344b6e6cdbf..05921660a16c8c6bf94a0deb34405fbb077050ca 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;
            }
index 459556e061a4423f2d004676a12fc5b95ac3245a..9aa2f197cef1f5175ce3c4723ca64a775db74943 100644 (file)
@@ -375,6 +375,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;
            }