From 306a94bebeded036a788e6d4b682bf442b5f8bb1 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 14 Jul 2014 21:17:44 +0530 Subject: main: Add a FIXME, and be verbose when new requests come --- src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index abd4f46..21843db 100644 --- a/src/main.c +++ b/src/main.c @@ -84,6 +84,8 @@ increment_write_timer (TranscodeClientCtx *ctx) return G_SOURCE_CONTINUE; g_printerr ("Client timed out, cleaning up\n"); + /* FIXME: This isn't actually setting the status for client + * connections, and clients are just left hanging */ soup_message_set_status (ctx->msg, SOUP_STATUS_REQUEST_TIMEOUT); soup_message_body_complete (ctx->msg->response_body); stp_cleanup_transcode_client_ctx (ctx); @@ -250,7 +252,7 @@ GET: break; case GST_STATE_CHANGE_FAILURE: /* PUT stream should've */ - g_critical ("GET request, but state change failure?"); + g_critical ("GET request on %s, but state change failure?", path); soup_message_set_status (msg, SOUP_STATUS_INTERNAL_SERVER_ERROR); return; case GST_STATE_CHANGE_ASYNC: @@ -260,6 +262,8 @@ GET: g_assert_not_reached (); } + g_print ("New GET request on %s\n", path); + /* Connect appsink to tee, and start streaming */ client_ctx = g_new0 (TranscodeClientCtx, 1); client_ctx->msg = msg; @@ -568,7 +572,7 @@ PUT: { ctx->parent_ctx_table = ctx_table; ctx->path = g_strdup (soup_uri_get_path (uri)); g_hash_table_insert (ctx_table, ctx->path, ctx); - g_debug ("New stream on %s!\n", ctx->path); + g_print ("New PUT stream on %s\n", ctx->path); g_signal_connect (msg, "got-chunk", G_CALLBACK (got_first_request_body_chunk), ctx); -- cgit v0.11.2-2-gd1dd