diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-08-04 08:29:37 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-08-04 08:29:37 (GMT) |
commit | d3a003078bfdd373fe75368f5e35389960850a20 (patch) | |
tree | 85ac746cb33efe5533b8064cba9c84b8a0360b9b /src/main.c | |
parent | 5e2f6cd04b28505e2fc906308f487bd4067a6935 (diff) | |
download | soup-transcoding-proxy-d3a003078bfdd373fe75368f5e35389960850a20.zip soup-transcoding-proxy-d3a003078bfdd373fe75368f5e35389960850a20.tar.gz |
server: Add some more stream timeout debugging
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |