From: Eric S. Raymond Date: Thu, 4 Oct 2012 17:48:26 +0000 (-0400) Subject: Leave a connection more politely. X-Git-Tag: 1.7~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e1d747dc88d6e7690fa20c3d785e05eb4a1b3e64;p=irker.git Leave a connection more politely. --- diff --git a/irkerd b/irkerd index b6043da..36cd9b1 100755 --- a/irkerd +++ b/irkerd @@ -200,6 +200,7 @@ class Connection: or now > self.last_ping + PING_TTL: self.irker.debug(1, "timing out inactive connection to %s at %s" % (self.servername, time.asctime())) self.connection.context = None + self.connection.quit("transmission timeout") self.connection.close() self.connection = None self.status = "disconnected"