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

	<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>2012-04-13T14:55:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[teegg]]></name></author>
		<updated>2012-04-13T14:55:53-04:00</updated>

		<published>2012-04-13T14:55:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99185#p99185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99185#p99185"/>
		<title type="html"><![CDATA[rss synd tinyurl code optimization]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99185#p99185"><![CDATA[
I am running rss synd 5b1 with tinyurl mod and am getting constant ping timeouts.<br><br>Originally I didn't think it was script related so i made the following post.<br><a href="http://forum.egghelp.org/viewtopic.php?t=18920" class="postlink">http://forum.egghelp.org/viewtopic.php?t=18920</a><br><br>but now I noticed the following:<br> [14:44] (!) timer drift -- spun 3 minutes<br><br>I think its due to the tinyurl code I added. Because before that, rss synd worked just fine and i had no ping timeouts. Also, some of the time, the tinyurl does show up when the rss is announced. SO i have two issues, my eggdrop tiems out and sometimes the tiny url does not produce anything.<br><br>Here is the tinyurl code I have:<div class="codebox"><p>Code: </p><pre><code>#tinyurl expansion for rss-synd.tcl#@see http://forum.egghelp.org/viewtopic.php?p=66327#66327proc ::rss-synd::tinyurl {url} {  #tinyurls are currently 26 chars at most  if {[string length $url] &lt;= 26} { return $url; }  set tinyurl "http://tinyurl.com/api-create.php";  set query [::http::formatQuery "url" $url];  # since this connection is synchronous and blocks  #  the timeout should be relatively small.  set token [::http::geturl "$tinyurl?$query" -timeout 5000];  set url [::http::data $token];  ::http::cleanup $token;  return $url;}</code></pre></div>So obviously there is a timeout I can edit. But my question is, do I need to increase or decrease the timeout. And also, why is this a problem, is the tinyurl.com service slow? Should I use a different one?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11955">teegg</a> — Fri Apr 13, 2012 2:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
