perfsonar / perl-shared

Shared libraries used by perl packages and referenced as a submodule in many git repos
Apache License 2.0
7 stars 3 forks source link

Timeout not working in DataService call to is_host_registered #44

Closed arlake228 closed 6 years ago

arlake228 commented 6 years ago

We have had multiple emails about toolkit web pages hanging for various reasons. They all seem to boil down to the Toolkit DataService not properly timing-out when it contacts the lookup service. In the code it clearly uses a SIGALRM to timeout after 5 seconds but this must not be working in all cases. We've seen problems when DNS is misconfigured, when ps-west went away for maintenance and when IPv6 is the only option. From experience, if you use threads or have the wrong imports it can sometimes break the signal handling so i wonder if we are bumping into that. We may also need to investigate adding a cronjob or somehow integrating with the ls_reg_daemon to determine that value since perl can't seem to handle timing it out properly.