diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 15:47:44 (GMT) |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-07-14 15:50:20 (GMT) |
commit | 306a94bebeded036a788e6d4b682bf442b5f8bb1 (patch) | |
tree | ed9b73e8082a1f25b7e44d47b2d88981755d7474 | |
parent | df0f28945f2c32f519457e838eb424401eb586e9 (diff) | |
download | soup-transcoding-proxy-306a94bebeded036a788e6d4b682bf442b5f8bb1.zip soup-transcoding-proxy-306a94bebeded036a788e6d4b682bf442b5f8bb1.tar.gz |
main: Add a FIXME, and be verbose when new requests come
-rw-r--r-- | src/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |