Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server
http://dinnerbone.com/minecraft/tools/status/
1.11k stars 146 forks source link

Change default Timeout #173

Closed Salamafet closed 2 years ago

Salamafet commented 2 years ago

Hi,

Thanks for this fantastic module.

Is it possible to change the default request timeout ? I have try: MinecraftServer.lookup("mysuperserver.com", timeout=5) and server.status(timeout=5)

But this is an unexpected argument.

Do I need to alter the default timeout of socket module ? And who ?

Thanks for your help

kevinkjt2000 commented 2 years ago

Propagating a timeout parameter from the high-level functions that call the lower-level network primitives should be possible and is probably a straightforward task for anyone looking to make their first contribution 😃