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

	<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>2011-04-10T01:09:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TheVillageIdiot]]></name></author>
		<updated>2011-04-10T01:09:03-04:00</updated>

		<published>2011-04-10T01:09:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96639#p96639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96639#p96639"/>
		<title type="html"><![CDATA[[Solved]: Using dccsend causes extreme application lag.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96639#p96639"><![CDATA[
Hi there guys/gals.<br><br>I'm coding a tcl script to dcc send files that users in channel trigger with a command. ie. !send file.txt<br><br>The script runs fine in and of itself. However, when the <strong class="text-strong">dccsend</strong> command is run it hogs 100% of the CPU for around 30 seconds... during that time, it wont respond to commands, etc.<br><br>Any reason for this?? Or is there a way i can avoid it?<br><br>Cause it could kill my bot if enough people tried to get files off it.<br><br>I've also tried using the <strong class="text-strong">after</strong> command - which has the same effect once it's triggered.<br><div class="codebox"><p>Code: </p><pre><code>set timeb [clock clicks -milliseconds]dccsend $filepath $nickset timec [clock clicks -milliseconds]Result: timeb: 1302413656191 Timec: 1302413679132TimeB - TimeC = 22,941 = 22.9 Seconds.</code></pre></div>I'm using the latest version of eggdrop and TCL 8.4.<br><br>Any help would be appreciated. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Edit:<br><br>The file is around 1GB... i tried a much smaller file, and there wasn't as much lag.<br><br>So i checked the source code, and it seems there is code that can create a temporary copy of the file. I back tracked it in the source code, and eventually found the config setting "<strong class="text-strong">copy-to-tmp</strong>" which i then set to <strong class="text-strong">0</strong><br><br><strong class="text-strong">Problem solved</strong>. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>Regards,<br><br>TheVillageIdiot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11638">TheVillageIdiot</a> — Sun Apr 10, 2011 1:09 am</p><hr />
]]></content>
	</entry>
	</feed>
