Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
python3: Fixed some threadpool handler bugs.
[ashd.git]
/
src
/
htparser.c
diff --git
a/src/htparser.c
b/src/htparser.c
index
a738e25
..
d10121c
100644
(file)
--- 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};
}
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)
if(sel.fd == afd)
sio = a;
else if(sel.fd == bfd)