Skip to content
Snippets Groups Projects
Commit e82bd78f authored by Vijver, van de, Bob (UT-GUEST)'s avatar Vijver, van de, Bob (UT-GUEST)
Browse files

Disabled automatic disconnect on idle

parent 46fab225
No related branches found
No related tags found
No related merge requests found
...@@ -542,16 +542,7 @@ class Connection: ...@@ -542,16 +542,7 @@ class Connection:
self.status = "expired" self.status = "expired"
break break
elif xmit_timeout or ping_timeout: elif xmit_timeout or ping_timeout:
LOG.info(( time.sleep(ANTI_BUZZ_DELAY)
"timing out connection to %s at %s "
"(ping_timeout=%s, xmit_timeout=%s)") % (
self.target, time.asctime(), ping_timeout,
xmit_timeout))
with self.irker.irc.mutex:
self.connection.context = None
self.connection.quit("transmission timeout")
self.connection = None
self.status = "disconnected"
else: else:
# Prevent this thread from hogging the CPU by pausing # Prevent this thread from hogging the CPU by pausing
# for just a little bit after the queue-empty check. # for just a little bit after the queue-empty check.
......
run.sh 0 → 100755
#!/bin/bash
#make-run.sh
#make sure a process is always running.
if ps ax | grep '[i]rkerd' > /dev/null; then
exit
else
sudo -u nobody /var/www/irker/irkerd -H 0.0.0.0 -n iDBirker &
fi
exit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment