diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-03-27 07:16:39 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-03-27 07:16:39 +0000 |
commit | ca4cf4c561c655a96134cf98b82839a3896d927f (patch) | |
tree | f1d1d2d4fe146fdec7fea2a95b7176563a715771 /usr.sbin/identd/identd.c | |
parent | 9fd3affc265fcaf9fa4e26f768b73f15694c2eef (diff) |
f the parent builts up a list of replies for the child, it helps
to readd the write event if there's still items on the list.
this lets things that do a lot of requests in parallel (like npm)
work betterer through a squid proxy using ident for auth.
ok jmatthew@
Diffstat (limited to 'usr.sbin/identd/identd.c')
-rw-r--r-- | usr.sbin/identd/identd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/identd/identd.c b/usr.sbin/identd/identd.c index cd11699bf9a..6b605e797e8 100644 --- a/usr.sbin/identd/identd.c +++ b/usr.sbin/identd/identd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identd.c,v 1.27 2015/01/16 06:40:17 deraadt Exp $ */ +/* $OpenBSD: identd.c,v 1.28 2015/03/27 07:16:38 dlg Exp $ */ /* * Copyright (c) 2013 David Gwynne <dlg@openbsd.org> @@ -489,6 +489,9 @@ parent_wr(int fd, short events, void *arg) free(r->buf); free(r); + + if (!SIMPLEQ_EMPTY(&sc.parent.replies)) + event_add(&proc_wr, NULL); } void |