apaszke / tcp-ping

TCP ping utility for node.js
MIT License
122 stars 27 forks source link

ping returns undefined time #2

Open Muphet opened 7 years ago

Muphet commented 7 years ago

no matter what i try to do i am getting undefined response time.

    tcp.ping({address:'google.com',attempts:5, timeout:150}, function(err, data){
      console.log(data);
    });

results: [{seq:0, time: undefined, err: {Object},

eapyl commented 7 years ago

You put only 150 milliseconds timeout. Try to increase this value.