| 72 | static char httpd_log_buf[8192]; |
| 73 | |
| 74 | static void httpd_capture_log(const char *line) { |
| 75 | size_t used = strlen(httpd_log_buf); |
| 76 | size_t avail = sizeof(httpd_log_buf) - used; |
| 77 | if (avail <= 1) |
| 78 | return; |
| 79 | int n = snprintf(httpd_log_buf + used, avail, "%s\n", line ? line : ""); |
| 80 | if (n < 0 || (size_t)n >= avail) |
| 81 | httpd_log_buf[sizeof(httpd_log_buf) - 1] = '\0'; |
| 82 | } |
| 83 | |
| 84 | /* ── Raw-socket test client ───────────────────────────────────── */ |
| 85 |
nothing calls this directly
no outgoing calls
no test coverage detected