summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2014-08-04 08:29:37 (GMT)
committerNirbheek Chauhan <nirbheek@centricular.com>2014-08-04 08:29:37 (GMT)
commitd3a003078bfdd373fe75368f5e35389960850a20 (patch)
tree85ac746cb33efe5533b8064cba9c84b8a0360b9b
parent5e2f6cd04b28505e2fc906308f487bd4067a6935 (diff)
downloadsoup-transcoding-proxy-d3a003078bfdd373fe75368f5e35389960850a20.zip
soup-transcoding-proxy-d3a003078bfdd373fe75368f5e35389960850a20.tar.gz
server: Add some more stream timeout debugging
-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);