There were some firewall / network issues resulting in our module hanging when trying to send messages to the Nagios server. To prevent any future network issues from impacting our module, a socket timeout value added to the code and applied to the new socket. .