diff options
author | Aaron Ball <nullspoon@iohq.net> | 2016-05-28 11:07:44 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2016-05-28 11:15:22 -0600 |
commit | c36103d9dfcca11f75a568d5ab9569e28ba35d1e (patch) | |
tree | 1966680754c7303115ef4d862cc692827ccaa843 /LICENSE | |
parent | a0efae77e4b573864011edbcbee61cb85c82d343 (diff) | |
download | ircmsg-master.tar.gz ircmsg-master.tar.xz |
Before, occasionally, the server would not respond (usually due to
connection flood when used with a scheduler) with a ping response. This
caused the get_ping function to infinitely loop, very quickly, causing
the cpu to spike and the process to never exit. This commit fixes that
behavior by looping no more than 50 times with an empty response before
exiting.
Also added a "no ping response received" error message to better explain
when exiting with failure in this scenario.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions