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

More details in "Failure to send header/request to FastCGI socket" log msg

Elevate the log level back to ERROR (from WARNING), as this is not an expected
condition and the sysop (me) should be alerted right away. This had previously
be lowered (along with some other log messages) from ERROR to WARNING.

When php-fpm is updated (on Debian, anyway), e.g. from 8.1 to 8.2, a new
etc/php configuration (pool.d) directory was used which set me back to a
default www.conf file that uses Unix domain sockets instead of TCP sockets.
parent 1a32f583
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3727 passed
......@@ -4735,10 +4735,11 @@ static BOOL exec_fastcgi(http_session_t *session)
br->role = htons(FCGI_RESPONDER);
br->flags = 0;
memset(br->reserved, 0, sizeof(br->reserved));
if (sendsocket(sock, (void *)msg, msglen) != msglen) {
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);
free(msg);
closesocket(sock);
lprintf(LOG_WARNING, "%04d Failure to send to FastCGI socket!", session->socket);
return FALSE;
}
if (!fastcgi_send_params(sock, session)) {
......
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