<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/10536" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-09-22T00:37:40-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/10536</id>

		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-22T00:37:40-04:00</updated>

		<published>2005-09-22T00:37:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55995#p55995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55995#p55995"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55995#p55995"><![CDATA[
<blockquote class="uncited"><div>anyway, your best bet is measuring your own lag only and take your chances from there</div></blockquote>yea guess you're right,  i don't think there's any script that does this, so doing it this alone is a good improvement.<br>thanks for the help, this was kinda fun hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Thu Sep 22, 2005 12:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T17:05:48-04:00</updated>

		<published>2005-09-21T17:05:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55984#p55984</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55984#p55984"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55984#p55984"><![CDATA[
that's why implementing anything beyond pinging your own server is simply not viable, it would become too complex with too many factors to account for<br><br>besides, you can't know what server joining users are on, so you can't really implement such a system, even if you are certain about the algorithm<br><br>however, a pure network-wide lag tracking system (one that is not coupled with protection scripts) could be implemented; in fact, it has been implemented already, at least in one instance: there was a bot on EFnet's #netsplit years ago that was announcing to the channel which server is about to split from which, and all takeover monkeys would race to that server in a bid to get ops and fight with rejoining op parties thereafter<br><br>anyway, your best bet is measuring your own lag only and take your chances from there<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T15:52:31-04:00</updated>

		<published>2005-09-21T15:52:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55978#p55978</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55978#p55978"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55978#p55978"><![CDATA[
mmm i guess am taking the lag effect from 1 side: that the lagging server will RECEIVE the joins suddenly, and not SEND them suddenly.<br><br>anyways in this case , it would be to complex to let the bot know everything and decide, lol trying to figure all this out might even make it lag <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> hehe<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T15:45:08-04:00</updated>

		<published>2005-09-21T15:45:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55977#p55977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55977#p55977"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55977#p55977"><![CDATA[
you don't care about server3? what if your users are on server3 or/and servers behind it and it's server3 that sends all those legitimate JOINs at once, tricking you in locking the chan?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T15:37:49-04:00</updated>

		<published>2005-09-21T15:37:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55976#p55976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55976#p55976"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55976#p55976"><![CDATA[
lol<br><br>i think each on is taking the word lagging differently.<br><br>am not checking whether server2 and server3 are lagging<br>let's take this:<br><br>i am the bot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br>i pinged my own server and i got a 0.01 sec reply  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow">  no lag to my own server, my connection is fine...<br><br>i ping server2 and server3<br>i found that the reply is 0.02 and 0.01  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> everything seems to be normal, the server am connected to is not lagging relatively to the other servers<br><br>i ping server2 and server3<br>i got replies : 3.21 and 4.32  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> most probably the server am connected to is lagging , since both server2 and 3 had big reply time<br><br>i ping server2 and server3<br>i got replies: 0.02 and 4.32  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> i can't assume that my server is lagging, because of the reply from server2 is 0.02 , it could be that server3 is the one lagging, but i don't care about it <br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> i hope am not confusing you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 3:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T15:25:43-04:00</updated>

		<published>2005-09-21T15:25:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55975#p55975</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55975#p55975"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55975#p55975"><![CDATA[
so we are back to my previous post about complex lag tracking system and zillions scenarios <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T15:26:13-04:00</updated>

		<published>2005-09-21T15:11:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55974#p55974</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55974#p55974"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55974#p55974"><![CDATA[
a-<blockquote class="uncited"><div>lagging to what? to the bot? then what does [ping server2] means in your pseudo-code? </div></blockquote>i want to check if the bot is lagging to server2 (in case it's not lagging to server1, it's own server)<br>if the bot is not lagging to it's server<br>and the bot is lagging to server2 and server3<br>then this most porbably means that server1 is lagging to other servers. <br><br>b-<blockquote class="uncited"><div>3 means pinging other servers</div></blockquote>yes i want to ping other servers to accomplish  a<br><br>anyways for now i'll settle for what's done and test it. the case of the lagging server can wait lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T14:57:30-04:00</updated>

		<published>2005-09-21T14:57:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55972#p55972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55972#p55972"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55972#p55972"><![CDATA[
<blockquote class="uncited"><div>i thought about parsing LINKS(to get the list of servers) and WHOIS (to know where the bot is connected)</div></blockquote>there is global variable <em class="text-italics">server</em>, don't go with whois'ing self<br><blockquote class="uncited"><div>what am actually checking if the server that the bot IS connected to is lagging or not. not other servers<br>because if it is then it could cause probs.</div></blockquote>lagging to what? to the bot? then what does [ping server2] means in your pseudo-code?<br><blockquote class="uncited"><div>and also is not about splits/rejoins<br>it's about to know forexample : if the bot noticed  6 joins happened in 3 seconds it could be due to 3 possible reasons:<br> 1- the is actually a flood<br> 2- the bot it self is lagging<br> 3- the server on which the bot is connected is lagging and suddenly received the packets and displayed them.<br><br>1 and 2 are taken care of, 3 remain to be completed.<br><br>hopefuly this clears up my thought more</div></blockquote>3 means pinging other servers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 2:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T14:45:22-04:00</updated>

		<published>2005-09-21T14:45:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55971#p55971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55971#p55971"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55971#p55971"><![CDATA[
i thought about parsing LINKS(to get the list of servers) and WHOIS (to know where the bot is connected)<br><br>what am actually checking if the server that the bot IS connected to is lagging or not. not other servers<br>because if it is then it could cause probs. <br><br>and also is not about splits/rejoins<br>it's about to know forexample : if the bot noticed  6 joins happened in 3 seconds it could be due to 3 possible reasons:<br> 1- the is actually a flood<br> 2- the bot it self is lagging<br> 3- the server on which the bot is connected is lagging and suddenly received the packets and displayed them.<br><br>1 and 2 are taken care of, 3 remain to be completed.<br><br>hopefuly this clears up my thought more<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 2:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T13:39:13-04:00</updated>

		<published>2005-09-21T13:39:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55967#p55967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55967#p55967"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55967#p55967"><![CDATA[
hmm so you are proposing a complex lag tracking system but you are not elaborating on details <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>obviously, you'll need to know the structure of the network, i.e. which servers your server connects to (that can be obtained by analyzing LINKS output); and you will have to come up with some algorithm for taking the ultimate decision whether to take action or not; however, that won't be easy since there can be all kind of scenarios; consider for example:<br><br>you are on server A, which connects to B, C and D; you have pinged B, C and D and detected no lag; however, D connects to E, and D is lagging to E, and most of your users are either on E or on servers behind E; so E splits, rejoins, and you take action because your averaged lag measurement for the neighbouring servers didn't go above the trhreshold<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T12:05:12-04:00</updated>

		<published>2005-09-21T12:05:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55961#p55961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55961#p55961"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55961#p55961"><![CDATA[
<blockquote class="uncited"><div>if the ping reply is greater than 3 seconds then the bot is lagging due to it's connection or load on box or whatever. <br><strong class="text-strong"><span style="text-decoration:underline">in case it's not</span></strong>, we should also check if the IRC server is lagging (is about to split or something) </div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T11:58:07-04:00</updated>

		<published>2005-09-21T11:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55958#p55958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55958#p55958"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55958#p55958"><![CDATA[
pinging other servers is pointless since if you are lagged to your own server, you'll be lagged to all others anyway - you have only one connection to IRC in any given moment, and that connection is through the server you are on<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T08:34:29-04:00</updated>

		<published>2005-09-21T08:34:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55955#p55955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55955#p55955"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55955#p55955"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc lag_check {} {global laggingset lag0 [ping server1]if {$lag0 &gt; 3 } { set lagging 1 return}# server1 != server2 != server3set lag1 [ping server2]set lag2 [ping server3]if {$lag1 &gt; 3 &amp;&amp; lag2 &gt; 3 } {set lagging 1return}}</code></pre></div>explanation of pseudo code: (EDIT*: it's not really pseudo code, it's more like code hehe)<br>server1 = the server to which the bot is connected.<br>if the ping reply is greater than 3 seconds then the bot is lagging due to it's connection or load on box or whatever.<br>in case it's not, we should also check if the IRC server is lagging (is about to split or something)<br>so we ping 2 other servers , server2 and server3<br>if the reply of both is greater than 3 seconds then server1 is lagging <br>and thus the bot is considered lagging and shouldn't issue commands <br><br>what do you guys think about this?<br><br>what's needed is:<ul><li>a function that pings the server and returns the reply<br>to get the 2 other server names to ping.</li></ul>i know it's should be in the scripting forum but it's about the pervious.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 8:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-19T05:10:12-04:00</updated>

		<published>2005-09-19T05:10:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55895#p55895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55895#p55895"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55895#p55895"><![CDATA[
<blockquote class="uncited"><div>but what will you do if you notice the bot has lagged 60s and somone triggers a 10s flood? do you want to ignore the flood? it might have been really a flood, it might have not been. How will you determine? </div></blockquote>i have more than 1 bot protecting the channel, so if one bot is lagging<br>i will rely on the others.<br><blockquote class="uncited"><div>and I will probably have periodic lag checks; on mass flood, I won't issue any server commands if the average lag from previous minute or so has been unacceptable</div></blockquote> <br>that seems to be a good idea, to rely on an average lag time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Mon Sep 19, 2005 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-19T04:35:31-04:00</updated>

		<published>2005-09-19T04:35:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55894#p55894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55894#p55894"/>
		<title type="html"><![CDATA[lagging bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55894#p55894"><![CDATA[
you get the lag not by parsing <em class="text-italics">.status</em> but by pinging the server and measuring its response time<br><br>and I will probably have periodic lag checks; on mass flood, I won't issue any server commands if the average lag from previous minute or so has been unacceptable<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Sep 19, 2005 4:35 am</p><hr />
]]></content>
	</entry>
	</feed>
