NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(r->request_body->bufs,NULL,r,"push stream module: unexpected publisher message request body buffer location. please report this to the push stream module developers.");
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(buf,NULL,r,"push stream module: cannot allocate memory for read the message");
text=buf->pos;
len=ngx_buf_size(buf);
}
// get and check channel id value
id=ngx_http_push_stream_get_channel_id(r,cf);
NGX_HTTP_PUSH_STREAM_CHECK_AND_FINALIZE_REQUEST_ON_ERROR(id,NULL,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");