Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit f43175f

Browse files
committed
** DEBUG DO NOT MERGE **
1 parent b560725 commit f43175f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/nxt_http_request.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <nxt_router.h>
88
#include <nxt_http.h>
9+
#include <nxt_http_compression.h>
910
#include <nxt_otel.h>
1011

1112

@@ -320,6 +321,8 @@ nxt_http_request_start(nxt_task_t *task, void *obj, void *data)
320321
nxt_socket_conf_t *skcf;
321322
nxt_http_request_t *r;
322323

324+
printf("%s: \n", __func__);
325+
323326
r = obj;
324327

325328
NXT_OTEL_TRACE();
@@ -692,6 +695,8 @@ nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r,
692695
nxt_http_field_t *server, *date, *content_length;
693696
nxt_socket_conf_t *skcf;
694697

698+
printf("%s: \n", __func__);
699+
695700
ret = nxt_http_set_headers(r);
696701
if (nxt_slow_path(ret != NXT_OK)) {
697702
goto fail;
@@ -782,6 +787,10 @@ nxt_http_request_ws_frame_start(nxt_task_t *task, nxt_http_request_t *r,
782787
void
783788
nxt_http_request_send(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out)
784789
{
790+
printf("%s: sending [%lu] bytes\n", __func__, nxt_buf_mem_size(&out->mem));
791+
792+
// nxt_http_comp_compress_response(out);
793+
785794
if (nxt_fast_path(r->proto.any != NULL)) {
786795
nxt_http_proto[r->protocol].send(task, r, out);
787796
}

src/nxt_http_route.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,8 @@ nxt_http_action_init(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
688688
nxt_router_conf_t *rtcf;
689689
nxt_http_action_conf_t acf;
690690

691+
printf("%s: \n", __func__);
692+
691693
nxt_memzero(&acf, sizeof(acf));
692694

693695
ret = nxt_conf_map_object(tmcf->mem_pool, cv, nxt_http_route_action_conf,

0 commit comments

Comments
 (0)