From 2f0bf1d802bd4ba6b26fe28a8af0dae6551a364a Mon Sep 17 00:00:00 2001 From: p2r3 Date: Fri, 29 Aug 2025 17:22:18 +0300 Subject: [PATCH] fix wrong datatype in network timeout timestamp --- src/tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index a32079a..33d35ba 100644 --- a/src/tools.c +++ b/src/tools.c @@ -38,7 +38,7 @@ ssize_t recv_all (int client_fd, void *buf, size_t n, uint8_t require_first) { // Track time of last meaningful network update // Used to handle timeout when client is stalling - int32_t last_update_time = get_program_time(); + int64_t last_update_time = get_program_time(); // If requested, exit early when first byte not immediately available if (require_first) { @@ -84,7 +84,7 @@ ssize_t send_all (int client_fd, const void *buf, ssize_t len) { // Track time of last meaningful network update // Used to handle timeout when client is stalling - int32_t last_update_time = get_program_time(); + int64_t last_update_time = get_program_time(); // Busy-wait (with task yielding) until all data has been sent while (sent < len) {