From: Fredrik Tolf Date: Sun, 19 Jun 2016 00:33:28 +0000 (+0200) Subject: htparser: Fixed up duplex timeouts. X-Git-Url: http://dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=4350acb522111f385f74dd9c7f8b3e47443ff225 htparser: Fixed up duplex timeouts. --- diff --git a/src/htparser.c b/src/htparser.c index a738e25..d10121c 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -333,7 +333,8 @@ static void passduplex(struct bufio *a, int afd, struct bufio *b, int bfd) if(ev) pfd[n++] = (struct selected){.fd = bfd, .ev = ev}; } - sel = mblock(600, n, pfd); + if((sel = mblock(600, n, pfd)).ev == 0) + break; if(sel.fd == afd) sio = a; else if(sel.fd == bfd)