At 7:47 AM -0500 1/16/03, Jeff Trawick wrote:
>Roy T. Fielding wrote:
>
>
>>  Second,
>>change the ap_log_error to the variable args version rather than
>>using a temporary buffer and ap_snprintf.
>
>I'm afraid you've lost me here.  What function is there to use in
>place of ap_log_error()?  Somehow use ap_pstrcat() and pass the buffer
>it builds to ap_log_error()?
>

I think Roy means something like:

   if (!sin_client)
      ap_log_error(APLOG_MARK, APLOG_WARNING, server_conf,
       "setsockopt: (TCP_NODELAY)");
   else
      ap_log_error(APLOG_MARK, APLOG_WARNING, server_conf,
       "setsockopt: (TCP_NODELAY), client %pA probably dropped the connection",
       &sin_client->sin_addr);

This avoids needing 'buf'
-- 
===========================================================================
   Jim Jagielski   [|]   [EMAIL PROTECTED]   [|]   http://www.jaguNET.com/
      "A society that will trade a little liberty for a little order
             will lose both and deserve neither" - T.Jefferson

Reply via email to