Use '127.0.0.1' instead of 'localhost' for keep-alive test

ab seems to have to problem resolving 'localhost' on Urban's computer.
This commit is contained in:
Ryan Dahl committed 2009-11-07 17:31:42 +01:00
1 parent cff1df1f9b
commit 6c9ec1ac40
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ function error (msg) {
}
function runAb(opts, callback) {
sys.exec("ab " + opts + " http://localhost:" + PORT + "/")
sys.exec("ab " + opts + " http://127.0.0.1:" + PORT + "/")
.addErrback(error)
.addCallback(function (out) {
var matches = /Requests per second:\s*(\d+)\./mi.exec(out);