From d3a003078bfdd373fe75368f5e35389960850a20 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 4 Aug 2014 13:59:37 +0530 Subject: server: Add some more stream timeout debugging --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index fc43552..416e9cd 100644 --- a/src/main.c +++ b/src/main.c @@ -166,12 +166,13 @@ stp_abort_server_ctx (STPServerCtx *ctx) invoke_g_hash_table_remove (ctx); } -/* If it's been more than 10 seconds since the last time we got +/* If it's been more than 5 seconds since the last time we got * a chunk for a PUT request, we timeout and drop the connection */ static gboolean increment_read_timer (STPServerCtx *ctx) { ctx->seconds_since_read += 2; + g_debug ("Checking stream read time (%i)...", ctx->seconds_since_read); if (ctx->seconds_since_read < server_timeout) return G_SOURCE_CONTINUE; @@ -530,6 +531,7 @@ got_request_body_chunk (SoupMessage *msg, /* We need to update this every chunk */ ctx->msg = msg; ctx->seconds_since_read = 0; + g_debug ("Got data, resetting stream read time..."); /* Actually just a ref */ buffer = stp_get_gst_buffer (chunk); -- cgit v0.11.2-2-gd1dd