Skip to content
Snippets Groups Projects
Commit db6e5474 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include protocol and client IP address in FastCGI send error log msg

parent 8fbd052e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3930 passed
......@@ -4765,7 +4765,8 @@ static BOOL exec_fastcgi(http_session_t *session)
memset(br->reserved, 0, sizeof(br->reserved));
int result = sendsocket(sock, (void *)msg, msglen);
if (result != msglen) {
lprintf(LOG_ERR, "%04d !ERROR %d sending %d bytes to FastCGI socket (send returned %d)", session->socket, ERROR_VALUE, msglen, result);
lprintf(LOG_ERR, "%04d %s [%s] !ERROR %d sending %d bytes to FastCGI socket (send returned %d)"
,session->socket, session->client.protocol, session->host_ip, ERROR_VALUE, msglen, result);
free(msg);
closesocket(sock);
return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment