Skip to content

Instantly share code, notes, and snippets.

@eriktrom
Created May 2, 2017 20:17
Show Gist options
  • Save eriktrom/25804b4079663003c3d043ff08cc0669 to your computer and use it in GitHub Desktop.
Save eriktrom/25804b4079663003c3d043ff08cc0669 to your computer and use it in GitHub Desktop.
debug-portfinder
DEBUG=* npm test
> [email protected] test /Users/trom/Documents/desktop_space/Dropbox/dev/dev-oss/node-portfinder
> vows test/*-test.js --spec
portfinder:defaultHosts exports._defaultHosts is: [ '127.0.0.1', '::1', 'fe80::1', 'fe80::8c3:5090:6f70:ebcd', '10.0.1.22', 'fe80::fc77:49ff:fe37:c7e5', '10.211.55.2', '10.37.129.2', 'fe80::4c67:fb4:a09c:efff' ] +0ms
♢ portfinder
When using portfinder module with 5 existing servers the getPort() method
✓ should respond with the first free socket (test5.sock)
When using portfinder module with no existing servers the getSocket() method with a directory that exists
✓ should respond with the first free socket (exists.sock)
When using portfinder module with no existing servers the getSocket() method with a directory that doesnt exist
✓ should respond with the first free socket (test.sock)
When the tests are over
✓ necessary cleanup should have taken place
♢ portfinder
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +46ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +3ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +7ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +3ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is fe80::1 +1ms
portfinder:testPort entered testPort(): trying fe80::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32768 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32769 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32770 +1ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32770 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32771 with error EADDRNOTAVAIL +11ms
portfinder:testPort entered testPort(): trying fe80::1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32772 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::1 port 32773 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32773 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32774 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32774 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32775 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32775 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32776 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32776 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::1 port 32777 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32777 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32778 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32778 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32779 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32779 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32780 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32780 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32781 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32781 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32782 +1ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32782 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32783 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32783 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32784 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32784 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32785 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32785 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::1 port 32786 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32786 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::1 port 32787 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32787 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::1 port 32788 +0ms
portfinder:testPort done w/ testPort(): failed fe80::1 w/ port 32788 with error EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::1:32788
at Object.exports._errnoException (util.js:1033:11)
at exports._exceptionWithHostPort (util.js:1056:20)
at Server._listen2 (net.js:1257:19)
at listen (net.js:1306:10)
at doListening (net.js:1421:7)
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
code: 'EADDRNOTAVAIL',
errno: 'EADDRNOTAVAIL',
syscall: 'listen',
address: 'fe80::1',
port: 32788 } +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is fe80::8c3:5090:6f70:ebcd +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32768 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32768 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32769 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32769 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32770 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32770 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32771 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32771 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32772 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32772 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32773 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32773 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32774 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32774 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32775 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32775 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32776 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32776 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32777 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32777 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32778 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32778 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32779 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32779 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32780 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32780 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32781 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32781 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32782 +2ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32782 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32783 +1ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32783 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32784 +1ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32784 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32785 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32785 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32786 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32786 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32787 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32787 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::8c3:5090:6f70:ebcd port 32788 +0ms
portfinder:testPort done w/ testPort(): failed fe80::8c3:5090:6f70:ebcd w/ port 32788 with error EADDRNOTAVAIL +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL +1ms
portfinder:getPort in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::8c3:5090:6f70:ebcd:32788
at Object.exports._errnoException (util.js:1033:11)
at exports._exceptionWithHostPort (util.js:1056:20)
at Server._listen2 (net.js:1257:19)
at listen (net.js:1306:10)
at doListening (net.js:1421:7)
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
code: 'EADDRNOTAVAIL',
errno: 'EADDRNOTAVAIL',
syscall: 'listen',
address: 'fe80::8c3:5090:6f70:ebcd',
port: 32788 } +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +3ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +5ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +2ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +1ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +2ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +3ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is fe80::fc77:49ff:fe37:c7e5 +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32768 +17ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32768 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32769 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32770 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32771 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32772 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32773 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32773 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32774 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32774 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32775 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32775 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32776 +1ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32776 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32777 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32777 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32778 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32778 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32779 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32779 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32780 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32780 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32781 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32781 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32782 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32782 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32783 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32783 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32784 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32784 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32785 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32785 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32786 +1ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32786 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32787 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32787 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::fc77:49ff:fe37:c7e5 port 32788 +0ms
portfinder:testPort done w/ testPort(): failed fe80::fc77:49ff:fe37:c7e5 w/ port 32788 with error EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::fc77:49ff:fe37:c7e5:32788
at Object.exports._errnoException (util.js:1033:11)
at exports._exceptionWithHostPort (util.js:1056:20)
at Server._listen2 (net.js:1257:19)
at listen (net.js:1306:10)
at doListening (net.js:1421:7)
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
code: 'EADDRNOTAVAIL',
errno: 'EADDRNOTAVAIL',
syscall: 'listen',
address: 'fe80::fc77:49ff:fe37:c7e5',
port: 32788 } +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +1ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is fe80::4c67:fb4:a09c:efff +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32768 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32768 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32769 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32769 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32770 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32770 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32771 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32771 with error EADDRNOTAVAIL +39ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32772 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32772 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32773 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32773 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32774 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32774 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32775 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32775 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32776 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32776 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32777 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32777 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32778 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32778 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32779 +1ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32779 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32780 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32780 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32781 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32781 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32782 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32782 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32783 +1ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32783 with error EADDRNOTAVAIL +2ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32784 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32784 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32785 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32785 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32786 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32786 with error EADDRNOTAVAIL +1ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32787 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32787 with error EADDRNOTAVAIL +0ms
portfinder:testPort entered testPort(): trying fe80::4c67:fb4:a09c:efff port 32788 +0ms
portfinder:testPort done w/ testPort(): failed fe80::4c67:fb4:a09c:efff w/ port 32788 with error EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with an err: EADDRNOTAVAIL +0ms
portfinder:getPort in eachSeries() result callback: err is { Error: listen EADDRNOTAVAIL fe80::4c67:fb4:a09c:efff:32788
at Object.exports._errnoException (util.js:1033:11)
at exports._exceptionWithHostPort (util.js:1056:20)
at Server._listen2 (net.js:1257:19)
at listen (net.js:1306:10)
at doListening (net.js:1421:7)
at _combinedTickCallback (internal/process/next_tick.js:83:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
code: 'EADDRNOTAVAIL',
errno: 'EADDRNOTAVAIL',
syscall: 'listen',
address: 'fe80::4c67:fb4:a09c:efff',
port: 32788 } +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +46ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +2ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +35ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32768 ] +0ms
When using portfinder module the getPort() method
✓ should respond with the first free port (32768)
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +2ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +2ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +5ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +1ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +5ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +26ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32768 ] +0ms
When using portfinder module the getPortPromise() method
✓ should respond with a promise of first free port (32768) if Promise are available
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +3ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +5ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +1ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +26ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32768 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32769 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +8ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32769 +3ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32769 +1ms
portfinder:testPort done w/ testPort(): OK ::1 port 32769 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +3ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32769 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32769 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32769 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +9ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32769 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32769 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32769 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +47ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32769 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +1ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32769 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32769 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +3ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32769 +3ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32769, 32769, 32769, 32769, 32769 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32770 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32770 +5ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +1ms
portfinder:testPort entered testPort(): trying ::1 port 32770 +21ms
portfinder:testPort done w/ testPort(): OK ::1 port 32770 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32770 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32770 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32770 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32770 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32770 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32770 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +111ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32770 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32770 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32770 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32770 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32770, 32770, 32770, 32770, 32770 ] +0ms
When using portfinder module the getPorts() method with an argument of 3
✓ should respond with the first three available ports (32768, 32769, 32770)
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +3s
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +2ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32773 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +1ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32773, 32773, 32773, 32773, 32773 ] +0ms
When using portfinder module with 5 existing servers the getPort() method
✓ should respond with the first free port (32773)
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +3s
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +1ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is localhost +0ms
portfinder:testPort entered testPort(): trying localhost port 32768 +0ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32768 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying localhost port 32769 +0ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying localhost port 32770 +0ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32770 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying localhost port 32771 +0ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32771 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying localhost port 32772 +0ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32772 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying localhost port 32773 +0ms
portfinder:testPort done w/ testPort(): OK localhost port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32773, 32773 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +20ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is localhost +0ms
portfinder:testPort entered testPort(): trying localhost port 32773 +0ms
portfinder:testPort done w/ testPort(): OK localhost port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32773, 32773, 32773, 32773, 32773, 32773 ] +0ms
When using portfinder module with 5 existing servers the getPort() method with user passed duplicate host
✓ should respond with the first free port (32773)
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +3s
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +121ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +0ms
portfinder:getPort in eachSeries() iteration callback: host is localhost +0ms
portfinder:testPort entered testPort(): trying localhost port 32768 +1ms
portfinder:testPort done w/ testPort(): failed localhost w/ port 32768 with error EADDRINUSE +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with an err: EADDRINUSE +0ms
portfinder:getPort in eachSeries() result callback: err is { Error: listen EADDRINUSE 127.0.0.1:32768
at Object.exports._errnoException (util.js:1033:11)
at exports._exceptionWithHostPort (util.js:1056:20)
at Server._listen2 (net.js:1270:14)
at listen (net.js:1306:10)
at doListening (net.js:1421:7)
at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:10)
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '127.0.0.1',
port: 32768 } +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +1ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +1ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE +35ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +8ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +2ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +3ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +1ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32773 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +18ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32773 +1ms
portfinder:testPort done w/ testPort(): OK ::1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +1ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32773, 32773, 32773, 32773, 32773 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32774 +1ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32774 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +7ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32774 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +1ms
portfinder:testPort entered testPort(): trying ::1 port 32774 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32774 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32774 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32774 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32774 +26ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32774 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32774 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32774 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +0ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32774 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32774 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32774 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32774 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32774, 32774, 32774, 32774, 32774 ] +0ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32775 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32775 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32775 +1ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32775 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32775 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32775 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +0ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32775 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32775 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32775 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +1ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32775 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32775 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32775 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +1ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32775 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32775 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32775 +29ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32775, 32775, 32775, 32775, 32775 ] +0ms
When using portfinder module with 5 existing servers the getPorts() method with an argument of 3
✓ should respond with the first three available ports (32773, 32774, 32775)
♢ portfinder
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32768 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32768 with error EADDRINUSE +1ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32769 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32769 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32770 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32770 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32771 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32771 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32772 +0ms
portfinder:testPort done w/ testPort(): failed 127.0.0.1 w/ port 32772 with error EADDRINUSE +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +3ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +1ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +4ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32768 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32768 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32768 +24ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32768, 32768, 32768, 32768, 32773 ] +1ms
portfinder:getPort in eachSeries() iteration callback: host is 127.0.0.1 +0ms
portfinder:testPort entered testPort(): trying 127.0.0.1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 127.0.0.1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is ::1 +0ms
portfinder:testPort entered testPort(): trying ::1 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK ::1 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +0ms
portfinder:getPort in eachSeries() iteration callback: host is 10.0.1.22 +1ms
portfinder:testPort entered testPort(): trying 10.0.1.22 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.0.1.22 port 32773 +0ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.211.55.2 +0ms
portfinder:testPort entered testPort(): trying 10.211.55.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.211.55.2 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +1ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() iteration callback: host is 10.37.129.2 +0ms
portfinder:testPort entered testPort(): trying 10.37.129.2 port 32773 +0ms
portfinder:testPort done w/ testPort(): OK 10.37.129.2 port 32773 +1ms
portfinder:tryConnection Try Connection client -> server -> client: OK PORTFINDER +2ms
portfinder:getPort in eachSeries() iteration callback testPort() callback with a success for port 32773 +1ms
portfinder:getPort in eachSeries() result callback: openPorts is [ 32773, 32773, 32773, 32773, 32773 ] +1ms
When using portfinder module ensure that infinite loop is not triggered
✓ should not get a timeout
✓ OK » 11 honored (10.277s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment