diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 722197b8a..b37920363 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -6,6 +6,7 @@ #include #include +#include #include @@ -320,6 +321,8 @@ nxt_http_request_start(nxt_task_t *task, void *obj, void *data) nxt_socket_conf_t *skcf; nxt_http_request_t *r; + printf("%s: \n", __func__); + r = obj; NXT_OTEL_TRACE(); @@ -692,6 +695,8 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r, nxt_http_field_t *server, *date, *content_length; nxt_socket_conf_t *skcf; + printf("%s: \n", __func__); + ret = nxt_http_set_headers(r); if (nxt_slow_path(ret != NXT_OK)) { goto fail; @@ -782,6 +787,10 @@ nxt_http_request_ws_frame_start(nxt_task_t *task, nxt_http_request_t *r, void nxt_http_request_send(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out) { + printf("%s: sending [%lu] bytes\n", __func__, nxt_buf_mem_size(&out->mem)); + +// nxt_http_comp_compress_response(out); + if (nxt_fast_path(r->proto.any != NULL)) { nxt_http_proto[r->protocol].send(task, r, out); } diff --git a/src/nxt_http_route.c b/src/nxt_http_route.c index bd0646f3b..e08fc9866 100644 --- a/src/nxt_http_route.c +++ b/src/nxt_http_route.c @@ -688,6 +688,8 @@ nxt_http_action_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf, nxt_router_conf_t *rtcf; nxt_http_action_conf_t acf; + printf("%s: \n", __func__); + nxt_memzero(&acf, sizeof(acf)); ret = nxt_conf_map_object(tmcf->mem_pool, cv, nxt_http_route_action_conf,