On 01/01/17 18:30, John Jetmore wrote:
> When HAProxy sends the v2 proxy string, Exim debugs:
> 
>  6194 Detected proxy protocol configured host
>  6194 Detected PROXYv2 header
>  6194 Truncated or too large PROXYv2 header (28/3088)
>  6194 Failure to extract proxied host, only QUIT allowed
> 
> I'm almost positive there's some sort of network order/endian issue causing
> this.  Specifically, that (28/3088) is (bytes read from network/16+expected
> size of network portion).
> 
> As you can see in the dumps below, the value HAProxy is sending for number
> of bytes in network portion is "000c", or 12.  It is also actually sending
> 28 bytes.  However, if I flip the byte order in 000c, it becomes 0x0c00 +
> 16, which is 3088.

I don't see much use of the htonl() family of routines in the code in
Exim, so endinanness failures look like a given.  What architecture are
you running on?

All of my test systems are little-endian, unfortunately.
-- 
Cheers,
  Jeremy


-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to