Commit 598ad56b authored by Deon George's avatar Deon George

Change buflen to size_t consitent with other recommendations, and change 'Working out' to LOG_DEBUG

parent fd42f821
......@@ -293,7 +293,7 @@ static BOOL read_socket(SOCKET sock, char *buffer, size_t len, int (*lprintf)(in
return TRUE;
}
static BOOL read_socket_line(SOCKET sock, char *buffer, int buflen, int (*lprintf)(int level, const char *fmt, ...))
static BOOL read_socket_line(SOCKET sock, char *buffer, size_t buflen, int (*lprintf)(int level, const char *fmt, ...))
{
int i;
......@@ -368,7 +368,7 @@ SOCKET DLLCALL xpms_accept(struct xpms_set *xpms_set, union xp_sockaddr * addr,
// http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
if (flags & XPMS_ACCEPT_FLAG_HAPROXY) {
memset(addr, 0, sizeof(*addr));
xpms_set->lprintf(LOG_INFO,"%04d Working out client address from HAProxy PROTO",ret);
xpms_set->lprintf(LOG_DEBUG,"%04d Working out client address from HAProxy PROTO",ret);
// Read the first line
if (! read_socket_line(ret, hapstr, 108, xpms_set->lprintf)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment