From f005d2950d8286475fc804e0d0e0cfbf99014323 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 23 Oct 2019 18:03:53 -0400 Subject: Send to server if client has no needs --- client.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client.c b/client.c index 0bba8d3..74d1e5c 100644 --- a/client.c +++ b/client.c @@ -158,9 +158,15 @@ void clientRecv(struct Client *client) { for (;;) { crlf = memmem(line, &client->buf[client->len] - line, "\r\n", 2); if (!crlf) break; - crlf[0] = '\0'; - if (verbose) fprintf(stderr, "\x1B[33m%s\x1B[m\n", line); - clientParse(client, line); + if (verbose) { + fprintf(stderr, "\x1B[33m%.*s\x1B[m\n", (int)(crlf - line), line); + } + if (client->need) { + crlf[0] = '\0'; + clientParse(client, line); + } else { + serverSend(line, crlf + 2 - line); + } line = crlf + 2; } client->len -= line - client->buf; -- cgit 1.4.1 > IRC bouncer
summary refs log tree commit diff
path: root/contrib/palaver/configure (unfollow)
Commit message (Collapse)Author
2020-08-28Refactor certificate loading and load all certs from config pathsJune McEnroe
2020-08-27Sandbox pounce with pledge(2)June McEnroe
unveil(2) is a bit complicated to apply to this, I'll have to think about it more.
2020-08-27Sandbox calico with pledge(2) and unveil(2)June McEnroe
2020-08-27Add support for OpenBSDJune McEnroe
2020-08-27Remove rc scriptsJune McEnroe
2020-08-27contrib/palaver: Fix documented database pathJune McEnroe
2020-08-27contrib/palaver: Remove rc scriptJune McEnroe
2020-08-27contrib/palaver: Fix database search and creationJune McEnroe
2020-08-27contrib/palaver: Use pounce's XDG directoryJune McEnroe
2020-08-27contrib/palaver: Only allow HTTPSJune McEnroe
2020-08-25Support the pounce_env rc variableJune McEnroe
2020-08-25Remove deprecated option namesJune McEnroe
The next release will be 2.0 so these can be removed now.
2020-08-25Document configuration and data file searchJune McEnroe
2020-08-24Use dataOpen for save fileJune McEnroe
2020-08-24Use configOpen to load localCAJune McEnroe
2020-08-24Use configPath to load client cert/privJune McEnroe
2020-08-24Use configOpen in getopt_configJune McEnroe
2020-08-24Import xdg.c from catgirlJune McEnroe
2020-08-23Replace “RAND_bytes” by “getentropy”Issam E. Maghni
This removes the dependency on libcrypto. Signed-off-by: Issam E. Maghni <issam.e.maghni@mailbox.org>
2020-08-16contrib/palaver: Add no message preview flagsJune McEnroe