[Phpsmartirc-users] PATCH: implement delay-before auto-reconnect
Brought to you by:
meebey
From: Ronald H. <ro...@hu...> - 2004-01-03 01:01:51
|
Hi, This one implements a configurable delay before reconnecting. This avoids using loads of cpu if you loop over many attempts (i have not 'ported' my quickfix to CVS yet) and avoids dossing a site ;) Next step will be to configure the number of attempts and reset the counter on success (not done so by quick fix for 0.5.5) Question though: I was using netcat in listen mode to make my bot connect to. If I shutdown netcat using ctrl-c SmartIRC starts looping over _rawreceive() at 100% cpu. The socket appeared to be in CLOSE_WAIT state according to netstat and stayed like that for ages without the bot going into reconnect... rawreceive is quite a complex function. no idea where to look... Ronald PS: I send a new message with the nickname array in login() patch attached, but i have not received it back from SF; nor does it show in the archives. Please let me know if you have seen it so i can resend if needed. PSS: i got a pserver CVS running where i work from: cvs -d :pserver:an...@hu...:/home/cvsroot co Net_SmartIRC No viewcvs or similar yet though. The initial import is as i pulled it from cvs.php.net 1-1-2004 -- Linux is like a small snowball rolling downhill. Microsoft is just waiting down the mountain... |