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.
Diffstat (limited to '')
-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);
ject'>Prefix mandoc with exec in about-filterJune McEnroe 2020-06-07Remove mktemp options from mkbuiltins, mktokensJune McEnroe Why even? 2020-06-07Cast z_stream fields to size_tJune McEnroe In the version of zlib in OpenBSD, these fields are of type off_t, which is signed (why?), rather than uLong. 2020-06-07Call static_assert by _Static_assertJune McEnroe OpenBSD doesn't #define static_assert in assert.h and _Static_assert is its real name I guess so why not? 2020-06-07Add OpenBSD to install.shJune McEnroe Straightforward. 2020-06-03Add The Song of AchillesJune McEnroe 2020-06-01Allow redirecting input in everJune McEnroe 2020-05-31Add %c conversion to c scriptJune McEnroe 2020-05-31Add c script to READMEJune McEnroe 2020-05-31Add c scriptJune McEnroe 2020-05-31Update mdoc source URLsJune McEnroe 2020-05-26Remove unfinished PSF fontsJune McEnroe