summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-07 01:36:25 -0500
committerJune McEnroe <june@causal.agency>2019-11-07 01:36:25 -0500
commitd20bda982a9cedfcdfeb677a436ec8a730364650 (patch)
tree5fba8eabeac8e7d929833b46c38e103fba3499c5
parentUse -l:filename in Linux.mk (diff)
downloadpounce-d20bda982a9cedfcdfeb677a436ec8a730364650.tar.gz
pounce-d20bda982a9cedfcdfeb677a436ec8a730364650.zip
Call clientConsume before clientRecv
This might reduce the frequency of a client getting its own message back
because it was behind in the ring when it sent it.
-rw-r--r--bounce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.c b/bounce.c
index 1f29f8c..5f615aa 100644
--- a/bounce.c
+++ b/bounce.c
@@ -429,8 +429,8 @@ int main(int argc, char *argv[]) {
 			}
 
 			struct Client *client = event.clients[i];
-			if (revents & POLLIN) clientRecv(client);
 			if (revents & POLLOUT) clientConsume(client);
+			if (revents & POLLIN) clientRecv(client);
 			if (clientError(client) || revents & (POLLHUP | POLLERR)) {
 				clientFree(client);
 				eventRemove(i);
2021-01-12Avoid matching tag text inside HTML elementsJune McEnroe 2021-01-12Use hilex for up -hJune McEnroe 2021-01-12Use hilex for bin HTMLJune McEnroe 2021-01-12Don't output a pre in hilex by defaultJune McEnroe 2021-01-12Move hilex out of hilex directoryJune McEnroe 2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe 2021-01-12Remove hacky tagging from hilexJune McEnroe 2021-01-12Add htagml -iJune McEnroe 2021-01-12Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe 2021-01-12Split fields by tab onlyJune McEnroe 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe