Hello,

Could you provide me with your configuration so that I can confirm the
behaviour?

greetinx
christo

On 09/28/2011 12:58 PM, Yang Zhe wrote:
> Package: haproxy
> Version: 1.4.15-1
> Severity: important
> Tags: upstream patch
> 
> After upgrading to linux kernel 3.0.0, my haproxy stopped working.
> 
> By using debug option, I find that transparent with usesrc client
> stopped working. It alters:
> 
>         [ALERT]: Cannot bind to source address before connect() for
> proxy %s. Aborting.
> 
> It worked correctly when I was using kernel 2.6.29. So that I checked
> into source code, and find that in src/proto_tcp.c:141,
> bind() returned 97 (EAFNOSUPPORT). I can't understand why it failed
> after successfully setsockopt(..., IP_TRANSPARENT, ...).
> 
> Since perror says "Address family not supported", I find that after
> memset() bind_addr to 0 at src/proto_tcp.c:132, bind_addr.sin_family
> is uninitialized. After I add bind_addr.sin_family = AF_INET; below
> memset(), recompile haproxy then it works again.
> 
> -- System Information:
> Debian Release: wheezy/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (101, 'experimental')
> Architecture: i386 (i686)
> 
> Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
> Locale: LANG=zh_CN.UTF-8, LC_CTYPE=zh_CN.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages haproxy depends on:
> ii  adduser                       3.113      add and remove users and groups
> ii  libc6                         2.13-17    Embedded GNU C Library: Shared 
> lib
> ii  libpcre3                      8.12-3     Perl 5 Compatible Regular 
> Expressi
> 
> haproxy recommends no packages.
> 
> haproxy suggests no packages.
> 
> -- no debconf information
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to