Hi Eliezer, On Fri, Sep 11, 2015 at 01:45:23PM +0300, Eliezer Croitoru wrote: > Hey List, > > I am writing a proxy protocol parser in golang and I need some help. > I am looking for couple proxy protocol v2 examples for testing purposes. > I am looking for couple strings which I can throw at my parser. > The first thing to do is just run a haproxy and dump the strings but I > think it's missing from the docs of v2 compared to v1.(from what I was > reading)
I don't understand, what is missing from the docs exactly ? Also indeed, it's very simple to run haproxy to get the protocol on your input. Just use "send-proxy" to get protocol v1, and "send-proxy-v2" to get protocol v2. You can also try other programs such as stunnel, stud or squid which are able to send it as well. Note that the example code in the protocol documentation has been used as a basis for a number of implementations (which is why bugs were reported). So you can also try to start from that. > Another issue is that (...) Personal advice : you should never ever mix two different questions in a single e-mail, that's the best way to never get a response to half of them because most people willing to help only look for unreplied e-mails. Regards, Willy

