Skip to content

Instantly share code, notes, and snippets.

@pweil-
Last active August 29, 2015 14:13
Show Gist options
  • Save pweil-/9069e4a5cd2cf6e527a8 to your computer and use it in GitHub Desktop.
Save pweil-/9069e4a5cd2cf6e527a8 to your computer and use it in GitHub Desktop.
debugging haproxy
backend be_http_example
mode http
balance leastconn
timeout check 5000ms
server example 0.0.0.0:8888 check inter 5000ms
00000000:public.accept(0005)=0009 from [127.0.0.1:60829]
00000000:public.clireq[0009:ffffffff]: GET / HTTP/1.1
00000000:public.clihdr[0009:ffffffff]: User-Agent: curl/7.32.0
00000000:public.clihdr[0009:ffffffff]: Accept: */*
00000000:public.clihdr[0009:ffffffff]: Host:www.example.com
00000000:be_http_example.srvrep[0009:000a]: HTTP/1.1 200 OK
00000000:be_http_example.srvhdr[0009:000a]: Date: Tue, 20 Jan 2015 22:48:28 GMT
00000000:be_http_example.srvhdr[0009:000a]: Content-Length: 17
00000000:be_http_example.srvhdr[0009:000a]: Content-Type: text/plain; charset=utf-8
00000001:public.clicls[0009:000a]
00000001:public.closed[0009:000a]
---------------- in hello handler with url 0.0.0.0:8080 : /
---------------- in hello pod handler with url 0.0.0.0:8888 : /
---------------- in hello pod secure with url 0.0.0.0:8443 : /
---------------- in hello handler with url 0.0.0.0 : /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment