summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c8
1 files 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);