oops, sorry, forget that +1... you have to change this part

if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *) &just_say_no,
sizeof(int)) < 0) {
+ char buf[128];
+
+ if (sin_client) {
+ ap_snprintf(buf, sizeof(buf),
+ ", client %pA probably dropped the connection",
+ &sin_client->sin_addr);
+ }
#ifdef NETWARE
errno = WSAGetLastError();
#endif
ap_log_error(APLOG_MARK, APLOG_WARNING, server_conf,
- "setsockopt: (TCP_NODELAY)");
+ "setsockopt: (TCP_NODELAY)%s",
+ sin_client ? buf : "");
}
}
First, the NETWARE part has to be above your additions.  Second,
change the ap_log_error to the variable args version rather than
using a temporary buffer and ap_snprintf.  I'd give you a patch,
but it would take longer if you already understand what I mean.
Let me know if I'm not making sense and I'll create a patch.

....Roy

Reply via email to