mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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:
1 parent
cff1df1f9b
commit
6c9ec1ac40
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user