回复: Fail to send unique-id by using proxy-v2-options

2020-05-29 Thread lufeng0...@outlook.com
It works! Thank you so much!

发件人: Christopher Faulet<mailto:cfau...@haproxy.com>
发送时间: 2020年5月29日 15:43
收件人: lufeng0...@outlook.com<mailto:lufeng0...@outlook.com>; 
haproxy@formilux.org<mailto:haproxy@formilux.org>
主题: Re: Fail to send unique-id by using proxy-v2-options

Le 29/05/2020 à 04:39, lufeng0...@outlook.com a écrit :
> *Hi, *
>
> **
>
> *I have compiled haproxy of version2.2-dev8 using Cygwin, in order to use it 
> as
> a load balancer in Windows 10. I want to send a unique ID generated using the
> frontend's "unique-id-format" within the PROXYv2 header. However, it reports 
> an
> error: *
>
> **
>
> *0 [main] haproxy 1076 cygwin_exception::open_stackdumpfile: Dumping stack 
> trace
> to haproxy.exe.stackdump*
>

Hi,

See the github issue #640. This bug was fixed by the commit 3ab504f5, not
included in the 2.2-dev8. You must use the latest HAProxy snapshot
(http://www.haproxy.org/download/2.2/src/snapshot/haproxy-ss-LATEST.tar.gz)


--
Christopher Faulet



回复: Fail to send unique-id by using proxy-v2-options

2020-05-29 Thread lufeng0...@outlook.com
It works! Thank you so much!


发件人: Lukas Tribus 
发送时间: Friday, May 29, 2020 3:48:09 PM
收件人: lufeng0...@outlook.com 
抄送: haproxy@formilux.org 
主题: Re: Fail to send unique-id by using proxy-v2-options

Hello,


On Fri, 29 May 2020 at 04:39, lufeng0...@outlook.com
 wrote:
>
> Hi,
>
>
>
> I have compiled haproxy of version2.2-dev8 using Cygwin, in order to use it 
> as a load balancer in Windows 10. I want to send a unique ID generated using 
> the frontend's "unique-id-format" within the PROXYv2 header. However, it 
> reports an error:
>
>
>
> 0 [main] haproxy 1076 cygwin_exception::open_stackdumpfile: Dumping stack 
> trace to haproxy.exe.stackdump

There are a least two related bugfixes in the tree after -dev8:

https://github.com/haproxy/haproxy/commit/3ab504f5ff53968ae70d592cba4c1c7da6a0e7ff
https://github.com/haproxy/haproxy/commit/68ad53cb3781010ccde7c781b6a3a1e926b5ed23

Can you try with a clone from the master branch directly or use
today's snapshot:

http://www.haproxy.org/download/2.2/src/snapshot/haproxy-ss-20200529.tar.gz



Thanks,

Lukas


Re: Fail to send unique-id by using proxy-v2-options

2020-05-29 Thread Lukas Tribus
Hello,


On Fri, 29 May 2020 at 04:39, lufeng0...@outlook.com
 wrote:
>
> Hi,
>
>
>
> I have compiled haproxy of version2.2-dev8 using Cygwin, in order to use it 
> as a load balancer in Windows 10. I want to send a unique ID generated using 
> the frontend's "unique-id-format" within the PROXYv2 header. However, it 
> reports an error:
>
>
>
> 0 [main] haproxy 1076 cygwin_exception::open_stackdumpfile: Dumping stack 
> trace to haproxy.exe.stackdump

There are a least two related bugfixes in the tree after -dev8:

https://github.com/haproxy/haproxy/commit/3ab504f5ff53968ae70d592cba4c1c7da6a0e7ff
https://github.com/haproxy/haproxy/commit/68ad53cb3781010ccde7c781b6a3a1e926b5ed23

Can you try with a clone from the master branch directly or use
today's snapshot:

http://www.haproxy.org/download/2.2/src/snapshot/haproxy-ss-20200529.tar.gz



Thanks,

Lukas



Re: Fail to send unique-id by using proxy-v2-options

2020-05-29 Thread Christopher Faulet

Le 29/05/2020 à 04:39, lufeng0...@outlook.com a écrit :

*Hi, *

**

*I have compiled haproxy of version2.2-dev8 using Cygwin, in order to use it as 
a load balancer in Windows 10. I want to send a unique ID generated using the 
frontend's "unique-id-format" within the PROXYv2 header. However, it reports an 
error: *


**

*0 [main] haproxy 1076 cygwin_exception::open_stackdumpfile: Dumping stack trace 
to haproxy.exe.stackdump*




Hi,

See the github issue #640. This bug was fixed by the commit 3ab504f5, not 
included in the 2.2-dev8. You must use the latest HAProxy snapshot 
(http://www.haproxy.org/download/2.2/src/snapshot/haproxy-ss-LATEST.tar.gz)



--
Christopher Faulet



Fail to send unique-id by using proxy-v2-options

2020-05-28 Thread lufeng0...@outlook.com
Hi,



I have compiled haproxy of version2.2-dev8 using Cygwin, in order to use it as 
a load balancer in Windows 10. I want to send a unique ID generated using the 
frontend's "unique-id-format" within the PROXYv2 header. However, it reports an 
error:



0 [main] haproxy 1076 cygwin_exception::open_stackdumpfile: Dumping stack trace 
to haproxy.exe.stackdump



Please help me solving this problem. Thank you so much!



Here is my configuration:



global

  maxconn 1592

  nbproc  1

  log 127.0.0.1 local0 info

  daemon



defaults

logglobal

log-format |%ts|%T|%ms|%Tt|%ci|%Tc|%Td|%Th|%Tw|%U|%b|%bi|%bp|%cp|%rt|%ID

timeout connect 5000

timeout client  5

timeout server  5



frontend local

mode tcp

bind *:443

unique-id-format %{+X}o\ %ci:%cp_%fi:%fp_%Ts_%rt:%pid

unique-id-header X-Unique-ID

default_backend web_servers



backend web_servers

mode tcp

balance roundrobin

server server1 XXX.XXX.XXX.XXX:443 send-proxy-v2 proxy-v2-options unique-id 
check inter 1500 rise 3 fall 3 weight 1



listen admin_stats

stats   enable

bind*:8200

modehttp

maxconn 10

stats   refresh 30s

stats   uri /admin?stats

stats   realm haproxys

stats   hide-version

timeout connect 10s

timeout client  1m

timeout server  1m







Best regards,

Lu