<?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/9788" />

	<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-06-19T05:33:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-06-19T05:33:30-04:00</updated>

		<published>2005-06-19T05:33:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51056#p51056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51056#p51056"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51056#p51056"><![CDATA[
example: I have a port checking script which waits for 2 fileevents (first: writeable and then readable). even it just opens a port , sends "\n" and closes it again (which needs about 150ms in blocking mode) it takes about 1500-2000ms, because fileevent triggers very slow. So probably the socket trigger isnt triggered much faster <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">. Personally I always had the feeling that eggdrop waits a bit longer as necessary, probably it isn't running the main loop as fast as the cpu would allow, because it would increase the cpu usage too high ^-^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Jun 19, 2005 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-19T01:55:35-04:00</updated>

		<published>2005-06-19T01:55:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51049#p51049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51049#p51049"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51049#p51049"><![CDATA[
dude, eggdrop has many other things to do besides (occasionally) invoking Tcl_DoOneEvent() - whereas [vwait] in your tclsh script doesn't do anything else but looping/waiting on Tcl_DoOneEvent() (see Tcl sources if you know C)<br><br>so, if your eggdrop is busy serving what it was meant to serve - IRC channels - it would naturally be slower in serving HTTP requests via your extension - slower than your dedicated tclsh script which doesn't do anything else<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jun 19, 2005 1:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-18T12:03:32-04:00</updated>

		<published>2005-06-18T12:03:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51021#p51021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51021#p51021"/>
		<title type="html"><![CDATA[...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51021#p51021"><![CDATA[
But i know very well what is vwait !<br><br>For example when i create a socket i do a fileevent on the sockid to call a proc when it is readable, but i must use vwait to enter Tcl Event loop !<br>If i don't the script will terminate, in the case of a socket i use a variable name that is never fixed to loop forever.<br><br>When i use Tcl in Eggdrop, i don't need vwait becouse Eggdrop have his proper event loop !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Sat Jun 18, 2005 12:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-18T11:59:19-04:00</updated>

		<published>2005-06-18T11:59:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51020#p51020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51020#p51020"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51020#p51020"><![CDATA[
while your English is somewhat poor, I still know what you are saying<br><br>and I don't believe it is so poor you can't understand what I'm saying; you just don't understand [vwait] and Tcl's event loop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 18, 2005 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-18T11:55:19-04:00</updated>

		<published>2005-06-18T11:55:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51019#p51019</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51019#p51019"/>
		<title type="html"><![CDATA[error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51019#p51019"><![CDATA[
you don't understand what i'm explaining becouse i'm bad in english, i'm not a newbie and i know very well what Eggdrop is and what a tcl script is.<br><br>I tell you that when i use mkHttpd not with Eggdrop, but whith tclsh directly there is no lag whereas when a use mkHttpd in an Eggdrop script there is a lag !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Sat Jun 18, 2005 11:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-18T11:20:30-04:00</updated>

		<published>2005-06-18T11:20:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=51005#p51005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=51005#p51005"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=51005#p51005"><![CDATA[
you are mistaken, and you obviously have misunderstood all of the above<br><br>eggdrop has nothing to do with [fconfigure], eggdrop is not a Tcl script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 18, 2005 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-18T05:10:25-04:00</updated>

		<published>2005-06-18T05:10:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50995#p50995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50995#p50995"/>
		<title type="html"><![CDATA[Test]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50995#p50995"><![CDATA[
Hi,<br><br>I've test two things:<br><br>1) use the script directly under Eggdrop (<a href="http://shell2.akseo.net:8888" class="postlink">http://shell2.akseo.net:8888</a> to see the result with lag)<br>2) use the exec command to invoke tclsh on a script that starts the httpd (with teh same package) and there is no lag !<br><br>I think Eggdrop should force the use of certain values with fconfigure as -bufferring none !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Sat Jun 18, 2005 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-11T13:47:07-04:00</updated>

		<published>2005-06-11T13:47:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50579#p50579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50579#p50579"/>
		<title type="html"><![CDATA[Re: Yes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50579#p50579"><![CDATA[
<blockquote class="uncited"><div>This is a library ! Consequently the event loop has to be managed by the application that use it!</div></blockquote>then manage it - use [vwait] from your eggdrop script that utilizes mkHttpd package<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Jun 11, 2005 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-10T16:10:38-04:00</updated>

		<published>2005-06-10T16:10:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50551#p50551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50551#p50551"/>
		<title type="html"><![CDATA[Yes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50551#p50551"><![CDATA[
This is a library ! Consequently the event loop has to be managed by the application that use it!<br><br>It is logic ! I've look the code to find a vwait command et there is no! I'm sure about that!<br><br><a href="http://mkextensions.sourceforge.net/mkHttpd10.zip" class="postlink">http://mkextensions.sourceforge.net/mkHttpd10.zip</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Fri Jun 10, 2005 4:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-10T15:53:31-04:00</updated>

		<published>2005-06-10T15:53:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50547#p50547</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50547#p50547"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50547#p50547"><![CDATA[
I can't believe there's no [vwait] in that code - you must somehow enter TCL's event loop to be able to process incoming connections - and the only way to do that from a script is to use [vwait]; in a C app, you'd use Tcl_DoOneEvent() - like eggdrop does in its event loop<br><br>and there's no need to configure the socket when using eggdrop's listen/control procs - all I/O in eggdrop is asynchronous (non-blocking) and buffered<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jun 10, 2005 3:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-10T15:45:09-04:00</updated>

		<published>2005-06-10T15:45:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50544#p50544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50544#p50544"/>
		<title type="html"><![CDATA[Right]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50544#p50544"><![CDATA[
I've think the same about vwait, so i've look the code, but the library dosen't contain any vwait command becouse the httpd server must be used in an application, for example using Tk, so it doesn't need vwait !<br><br>I don't like the listen/control procs becouse you can't scecify ip or configure the socket (blocking, buffer, etc...)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Fri Jun 10, 2005 3:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-10T15:36:50-04:00</updated>

		<published>2005-06-10T15:36:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50543#p50543</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50543#p50543"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50543#p50543"><![CDATA[
that site is down<br><br>I'd however speculate that the problem is with using [vwait] - inside wish/tclsh you don't have to bother about giving a chance to eggdrop handlers to process IRC events - and inside eggdrop you naturally must do that, otherwise the bot will hang and ping timeout<br><br>so if you want a TCP (probably HTTP) server to run on eggdrop, you better use eggdrop's [listen] and [control] procs<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jun 10, 2005 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-10T14:46:58-04:00</updated>

		<published>2005-06-10T14:46:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50541#p50541</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50541#p50541"/>
		<title type="html"><![CDATA[mkHttpd]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50541#p50541"><![CDATA[
I use de very good lib mkHttpd (<a href="http://mkextensions.sf.net" class="postlink">http://mkextensions.sf.net</a>), in a tclsh prohram this lib works very weel but inside Eggdrop it lag !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Fri Jun 10, 2005 2:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-06-10T12:06:30-04:00</updated>

		<published>2005-06-10T12:06:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50530#p50530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50530#p50530"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50530#p50530"><![CDATA[
paste the code<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Jun 10, 2005 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Merwin]]></name></author>
		<updated>2005-06-10T04:27:18-04:00</updated>

		<published>2005-06-10T04:27:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=50515#p50515</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=50515#p50515"/>
		<title type="html"><![CDATA[Socket -server | Lag when using Eggdrop]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=50515#p50515"><![CDATA[
Hi,<br><br>I dn't know why but when i use <strong class="text-strong">socket -server</strong> on Eggdrop it lags a lot.<br>However, the same code with wish or tclsh doesn't lag...<br><br>I don't understand, if somebody have a idea?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6330">Merwin</a> — Fri Jun 10, 2005 4:27 am</p><hr />
]]></content>
	</entry>
	</feed>
