From cbc3a06c0b2142bfe989ae5c1338c7389e80a57f Mon Sep 17 00:00:00 2001 From: Shane Bryldt Date: Tue, 16 Jul 2024 18:35:45 +0000 Subject: [PATCH] kws_raw_write should return the total number of bytes sent, not just the last fragment sent --- src/kws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kws.c b/src/kws.c index 71ab949..d84c2a6 100644 --- a/src/kws.c +++ b/src/kws.c @@ -650,7 +650,7 @@ KS_DECLARE(ks_ssize_t) kws_raw_write(kws_t *kws, void *data, ks_size_t bytes) //printf("wRITE FAIL: %s\n", strerror(errno)); //} - return r; + return wrote; } static void setup_socket(ks_socket_t sock)