Update.
All checks were successful
Build and Test / build (push) Successful in 33s

This commit is contained in:
retoor 2025-12-12 22:33:27 +01:00
parent 46a13f7aa3
commit 0c36a104b4
2 changed files with 18 additions and 2 deletions

View File

@ -49,6 +49,20 @@ make coverage-html # Generate HTML coverage report
make valgrind # Run tests with memory leak detection
```
### Test Results
```
Test Results: 559/559 passed
HEAP SUMMARY:
in use at exit: 0 bytes in 0 blocks
total heap usage: 155,794 allocs, 155,794 frees, 13,900,573 bytes allocated
All heap blocks were freed -- no leaks are possible
ERROR SUMMARY: 0 errors from 0 contexts
```
## Configuration
Configuration is defined in `proxy_config.json`:

View File

@ -708,8 +708,10 @@ static void handle_client_read(connection_t *conn) {
}
}
log_info("[ROUTING-FORWARD] Forwarding request for fd=%d: %s %s",
conn->fd, conn->request.method, conn->request.uri);
char routing_tag[16];
snprintf(routing_tag, sizeof(routing_tag), "%-15.15s", conn->request.host);
log_info("[%s] Forwarding request for fd=%d: %s %s",
routing_tag, conn->fd, conn->request.method, conn->request.uri);
conn->vhost_stats = monitor_get_or_create_vhost_stats(conn->request.host);
monitor_record_request_start(conn->vhost_stats, conn->request.is_websocket);