summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
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);