about 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);
6d0f751158c&follow=1'>Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe