Skip to content

Commit

Permalink
** DEBUG DO NOT MERGE **
Browse files Browse the repository at this point in the history
  • Loading branch information
ac000 committed Nov 29, 2024
1 parent 4ddf19c commit 3010704
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/nxt_http_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <nxt_router.h>
#include <nxt_http.h>
#include <nxt_http_compression.h>
#include <nxt_otel.h>


Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions src/nxt_http_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3010704

Please sign in to comment.