-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12-05-17 02:49 PM, Alberto Salce wrote: > Could this be related to why ApacheBenchmark and Mongrel2 don't get > along. AB just hangs like if the connections are not being accepted. > Siege works just fine.
For the records ApacheBenchmark works with mongrel, but you have to check/set the version/Connection: header properly and close the connection when needed (2nd message with empty response). You would run into the same issues with Nagios-plugin's check_http if you don't do it. I think there were discussions about allowing to tell mongrel to close the connection in the response message itself (saving a 2nd message), and I guess it could be also possible to have mongrel handle keepalive connections itself when explicitly told to (likely a bigger project, ie you have to reap idle connections after a timeout, etc...) The most simple handler would just set "Connection: close" and close the socket regardless of the headers/http version; this will turn off keepalives and make odd clients happy. - -- Thomas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+9wVkACgkQ6dZ+Kt5BchbSEwCgk2GCISOCGf+09dQn3HNjlnXX aAIAnjMg4beq3L+LmcJVmVr9j6j/7twQ =FV8F -----END PGP SIGNATURE-----
