Mercurial
diff hg-web/main.c @ 249:c5129452493e
[deploy] Bundle Mercurial with hg-web
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Tue, 04 Aug 2026 04:16:45 -0700 |
| parents | 3007ef5fc0ed |
| children |
line wrap: on
line diff
--- a/hg-web/main.c Tue Aug 04 02:44:06 2026 -0700 +++ b/hg-web/main.c Tue Aug 04 04:16:45 2026 -0700 @@ -13,7 +13,7 @@ #define HG_SERVE_HOST "127.0.0.1" #define HG_SERVE_PORT "4444" #define HG_API_TIMEOUT_MS 15000 -#define HG_STREAM_IDLE_TIMEOUT_MS 60000 +#define HG_STREAM_IDLE_TIMEOUT_MS 3600000 #define MAX_PATH_LENGTH 4096 #define MAX_WIRE_QUERY_LENGTH 8192 #define MAX_WIRE_HEADER_LENGTH 8192 @@ -501,11 +501,11 @@ arena); } -static int64_t monotonic_milliseconds(void) +static int64 monotonic_milliseconds(void) { struct timespec now; clock_gettime(CLOCK_MONOTONIC, &now); - return (int64_t)now.tv_sec * 1000 + now.tv_nsec / 1000000; + return (int64)now.tv_sec * 1000 + now.tv_nsec / 1000000; } static size_t find_http_header_length(const uint8 *buffer, size_t length) @@ -664,7 +664,7 @@ } boolean response_started = FALSE; - int64_t last_progress = monotonic_milliseconds(); + int64 last_progress = monotonic_milliseconds(); while (!response_started) { int read_result = Seobeo_Handle_Read(upstream);