node-minecraft-pinger
node-minecraft-pinger copied to clipboard
Ability to change the Packet timeout
Hi there,
Currently the Packet timeout is hard coded to 10 seconds. 10 seconds is quite a long time to wait, and is even more considerable when running this against thousands of servers (on a server list website for example), eg 1% of servers being offline for 10,000 server pings is a total of 16 minutes delay.
This is quite considerable for my use case because I am storing the player counts every hour in a database. I loop over all servers every hour, and the result is that server number 9,997 is seeing a 15 minute delay on its hourly player count - server 1 has a 3pm player count where as server 9997 has a 3:15pm player count.
Would it be possible to add in a variable for this so that the Packet timeout can be lowered?