summaryrefslogtreecommitdiff
path: root/usr.sbin/identd
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-03-27 07:16:39 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-03-27 07:16:39 +0000
commitca4cf4c561c655a96134cf98b82839a3896d927f (patch)
treef1d1d2d4fe146fdec7fea2a95b7176563a715771 /usr.sbin/identd
parent9fd3affc265fcaf9fa4e26f768b73f15694c2eef (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')
-rw-r--r--usr.sbin/identd/identd.c5
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