From 0ff0df8e12c34426d205dd730e8c32f615f52e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sat, 25 May 2013 12:29:04 +0200 Subject: [PATCH] [mod_fastcgi] show stderr messages --- src/modules/fastcgi_stream.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/fastcgi_stream.c b/src/modules/fastcgi_stream.c index c27b3d3..facb265 100644 --- a/src/modules/fastcgi_stream.c +++ b/src/modules/fastcgi_stream.c @@ -699,7 +699,11 @@ static void fastcgi_decode(liFastCGIBackendContext *ctx) { li_chunkqueue_skip(in, len); ctx->remainingContent -= len; - /* TODO: callback(errormsg) */ + if (NULL != ctx->currentcon) { + const liFastCGIBackendCallbacks *callbacks = ctx->pool->callbacks; + callbacks->fastcgi_stderr_cb(ctx->currentcon->vr, &ctx->pool->public, &ctx->currentcon->public, errormsg); + } + g_string_free(errormsg, TRUE); } break;