NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NGX_HTTP_PUSH_STREAM_UNSET_CHANNEL_ID,r,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler without channel id");
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NGX_HTTP_PUSH_STREAM_UNSET_CHANNEL_ID,r,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler without channel id");
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NGX_HTTP_PUSH_STREAM_TOO_LARGE_CHANNEL_ID,r,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler with channel id too large");
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NGX_HTTP_PUSH_STREAM_TOO_LARGE_CHANNEL_ID,r,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler with channel id too large");
// just find the channel. if it's not there, NULL and return error.
ngx_log_error(NGX_LOG_ERR,(r)->connection->log,0,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler without created channel %s",id->data);
ngx_log_error(NGX_LOG_ERR,(r)->connection->log,0,"push stream module: unable to allocate message in shared memory");
ngx_log_error(NGX_LOG_ERR,(r)->connection->log,0,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_publisher_body_handler without created channel %s",id->data);
ngx_log_error(NGX_LOG_ERR,(r)->connection->log,0,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_subscriber_assign_channel without created channel %s",requested_channel->id->data);
ngx_log_error(NGX_LOG_ERR,(r)->connection->log,0,"push stream module: something goes very wrong, arrived on ngx_http_push_stream_subscriber_assign_channel without created channel %s",requested_channel->id->data);
returnNGX_ERROR;
}
channel->subscribers++;// do this only when we know everything went okay
channel->subscribers++;// do this only when we know everything went okay