From 1a3674526d42e7abd7a3a3e4d085edca3873f7f7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 23 May 2017 12:31:18 +1000 Subject: [PATCH] Add comment regarding use of read_socket_line in generator and !cs. --- src/generator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index d63626d8..49b5381e 100644 --- a/src/generator.c +++ b/src/generator.c @@ -2340,7 +2340,8 @@ static void *proxy_recv(void *arg) } /* Parse any other messages already fully buffered with a zero - * timeout. */ + * timeout. This might call read_socket_line with cs == NULL + * but it can gracefully handle that. */ while (message || read_socket_line(cs, &timeout) > 0) { message = false; timeout = 0;