I've found that the IRCClient protocol doesn't deal well with having its 
connection interrupted.  If the TCP session goes away due to timeout or some 
other interruption, it doesn't appear to notice.  As a result, I'm looking at 
adding appropriate methods to allow a client to initiate its own pings to the 
server so that it can detect when the connection is lost.  I'll submit all this 
back via Trac when I can get in there.

This will need IRCClient.irc_PONG(), which looks fairly straightforward to 
write, and the obvious method for the outgoing ping would be IRCClient.ping(), 
but that seems to have been taken up for DCC PING instead.  

Presumably it would upset people if backward compatibility was broken and that 
was changed to IRCClient.dccPing() to match the rest of the outgoing DCC 
methods. Does anyone have any opinion on what other method name would make 
sense and still be close to maintaining consistency with the rest of the 
outgoing method names?



_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to