$NetBSD: patch-ac,v 1.3 2025/12/18 09:56:02 nia Exp $ --- mini_httpd.c.orig 2018-10-26 19:47:50.000000000 +0000 +++ mini_httpd.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -841,6 +842,10 @@ main( int argc, char** argv ) if ( errno == EPROTO ) continue; /* try again */ #endif /* EPROTO */ +#ifdef ECONNABORTED + if ( errno == ECONNABORTED ) + continue; /* try again */ +#endif /* ECONNABORTED */ syslog( LOG_CRIT, "accept - %m" ); perror( "accept" ); exit( 1 );