HAproxy not accepting http health check response

From: Sanjeev Kumar <replyskumar#gmail.com>
Date: Mon, 25 May 2009 14:04:07 +0530


My application on real-server(on port 9123) is responding to http health as follows:

http health chk Cmd >> HEAD /check.txt HTTP/1.0 server health chk resp> HTTP/1.0 200 OK

On the debian-linux on which HAproxy is running, I can see tcp-connection & cmd-resp exch using Wireshark analyzer. HAproxy sends few healthchk and then RST the socket.
But HAproxy doesn't accept the health chk resp, indicating server Down.

This time, I ran the HAproxy under strace .

I see the connect to remote socket is Ok. But send returns EAGAIN and the recv also return EAGAIN(resource temporaility unavailable).
what am I doing wrong?

 My config file.

##
global
  log 127.0.0.1 local0
  maxconn 100
  user root
  group root
  debug

defaults
  log global
  timeout connect 10s

listen vproxy *:9123

   mode tcp
  option tcplog
  option httpchk HEAD /check.tst HTPP/1.0   server servA 192.168.2:9123 check

thanks,
-sanjeev kumar Received on 2009/05/25 10:34

This archive was generated by hypermail 2.2.0 : 2009/05/25 10:45 CEST