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

	<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-03-14T17:34:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T17:34:00-04:00</updated>

		<published>2005-03-14T17:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47658#p47658</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47658#p47658"/>
		<title type="html"><![CDATA[Re: ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47658#p47658"><![CDATA[
<blockquote class="uncited"><div>the connection made by 'connect' will be from the address returned by 'myip' (127.0.0.1 == 2130706433)<br>the connection made by 'socket' will be from what ever 'info hostname' resolves to (iirc)</div></blockquote>I see I see, thats why its 00000000, becaue I haven't set anything for my-*, since I am behind NAT and the doc forbids me to set it, if using set NAT-IP. But I believe the system will use 127.0.0.1 automatically even "source" is 0.0.0.0, wont it?<br><br><blockquote class="uncited"><div>No..that's not what I meant...I don't think leaving it running is a good idea as you'll be vulnerable to dos attacks. What I meant was...if you 'connect' to a identd that accepts your connection, nothing will happen before it times out (using your/my test script), as the identd gives no output without any input.</div></blockquote>yeah, but if there isn't any IdentD there to response it's meaningless what I put to the port.<blockquote class="uncited"><div>[19:28:44] tcl: evaluate (.tcl): control [set {smalconnecttest:s} [connect localhost 113]] smalconnecttest<br>[19:28:44] WARNING: open_telnet_raw() is about to block in gethostbyname()!<br>Tcl:<br>[19:28:50] tcl: evaluate (.tcl): putdcc ${smalconnecttest:s} ""<br>Tcl:<br>[19:28:50] dequeue_sockets(): errno = 128 (Transport endpoint is not connected) on 14<br>[19:28:55] tcl: evaluate (.tcl): putdcc ${smalconnecttest:s} ""<br>Tcl:<br>...<br>[22:26:42] #De_Kus# dccstat<br>...<br>14   00000000   113 *         localhost         scri  smalconnecttest</div></blockquote>trying to write to the port won't change anything. If I hurry to put something I get "dequeue_sockets(): errno = 128 (Transport endpoint is not connected)" (remeber it from the telnet log?). It simply idles instead of closing the port (internaly). or do you believe it is simply an issue with Cygwin?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 5:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-03-14T14:00:05-04:00</updated>

		<published>2005-03-14T14:00:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47654#p47654</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47654#p47654"/>
		<title type="html"><![CDATA[Re: ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47654#p47654"><![CDATA[
<blockquote class="uncited"><div>both should connect from 127.0.0.1 to 127.0.0.1 as well I hope <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.</div></blockquote>the connection made by 'connect' will be from the address returned by 'myip' (127.0.0.1 == 2130706433)<br>the connection made by 'socket' will be from what ever 'info hostname' resolves to (iirc)<blockquote class="uncited"><div>IdentD is not running, port is CLOSED. but good suggestion anyway *enables mIRC to run identd permantly*.</div></blockquote>No..that's not what I meant...I don't think leaving it running is a good idea as you'll be vulnerable to dos attacks. What I meant was...if you 'connect' to a identd that accepts your connection, nothing will happen before it times out (using your/my test script), as the identd gives no output without any input.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Mar 14, 2005 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T13:43:35-04:00</updated>

		<published>2005-03-14T13:43:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47652#p47652</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47652#p47652"/>
		<title type="html"><![CDATA[ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47652#p47652"><![CDATA[
<blockquote class="uncited"><div>no, I meant /etc/hosts in CYGWIN, not its Windows counterpart (which is not used by the CYGWIN resolver lib I think)</div></blockquote>I edited my post while you were answering to state it clear, Cygwin uses this file because it has a symbolic link to it.<blockquote class="uncited"><div>$ ls -l /etc<br>total 41<br>...<br>lrwxrwxrwx  1 De Kus Benutzer    37 Jan 24 23:14 hosts -&gt; C:\WINDOWS\system32\drivers\etc\hosts<br>...<br><br>$ grep . /etc/hosts<br># Copyright (c) 1993-1999 Microsoft Corp.<br>...</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 1:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-14T13:40:00-04:00</updated>

		<published>2005-03-14T13:40:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47651#p47651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47651#p47651"/>
		<title type="html"><![CDATA[ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47651#p47651"><![CDATA[
no, I meant /etc/hosts in CYGWIN, not its Windows counterpart (which is not used by the CYGWIN resolver lib I think)<br><br>repeat your tests with 127.0.0.1 instead of localhost; if you don't experience the 30s delay, my guess been right and there's resolving problem<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Mar 14, 2005 1:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T13:25:20-04:00</updated>

		<published>2005-03-14T13:25:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47649#p47649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47649#p47649"/>
		<title type="html"><![CDATA[Re: ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47649#p47649"><![CDATA[
<blockquote class="uncited"><div>add "127.0.0.1 localhost" to /etc/hosts in your CYGWIN environment</div></blockquote>I have one in C:\WINDOWS\system32\drivers\etc\hosts which is correctly read (Cygwin creates a symbolic link to it as /etc/hosts which refers to the Windows one) correctly:<blockquote class="uncited"><div>[14:13:36] DNS resolved 127.0.0.1 to localhost </div></blockquote><blockquote class="uncited"><div>$ more &lt; /etc/hosts<br># Copyright (c) 1993-1999 Microsoft Corp.<br>...</div></blockquote><blockquote class="uncited"><div>Are you connecting from the same address when you do it "manually"?</div></blockquote><blockquote class="uncited"><div>[18:39:16] tcl: evaluate (.tcl): socket localhost 113<br>Tcl error: couldn't open socket: connection refused</div></blockquote>I have no timespamps here, I'd say it takes 0.5-1s for response. same when using PuTTY. both should connect from 127.0.0.1 to 127.0.0.1 as well I hope <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><blockquote class="uncited"><div>Keep in mind that if your connection IS accepted by an identd, there will be no output unless you send a request first.</div></blockquote>IdentD is not running, port is CLOSED. but good suggestion anyway *enables mIRC to run identd permantly*.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-03-14T12:42:57-04:00</updated>

		<published>2005-03-14T12:42:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47640#p47640</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47640#p47640"/>
		<title type="html"><![CDATA[Re: ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47640#p47640"><![CDATA[
<blockquote class="uncited"><div>The strange thing is, if I try manually connect to localhost:113 I will get imediedly response that port is closed, so I wonder why the bot waits 30s, if he should know within less than 1 there will not come any response because opening TCP port failed?!</div></blockquote>Are you connecting from the same address when you do it "manually"?<br>My old 1.6.13 eggdrop seems to work just fine:<blockquote class="uncited"><div>[17:35:03] &lt;usr&gt; .tcl bind dcc n test1 test1; proc test1 {h i1 a} {set i2 "usage: .test1 &lt;addr&gt;:&lt;port&gt;";if {[scan $a {%[^:]:%d} a p]!=2||[catch {connect $a $p} i2]} {putdcc $i1 "Err: $i2"} {control $i2 [list test2 $i1]}}; proc test2 {i1 i2 a} {if {$a==""} {putdcc $i1 "Lost it"} else {putdcc $i1 "Got data: $a"; killdcc $i2}; return 1}<br>[17:35:03] &lt;bot&gt; Tcl: <br>[17:35:06] &lt;usr&gt; .test1 0:22<br>[17:35:06] &lt;bot&gt; Got data: SSH-2.0-OpenSSH_3.9p1<br>[17:35:08] &lt;usr&gt; .test1 0:24<br>[17:35:08] &lt;bot&gt; Lost it</div></blockquote>Keep in mind that if your connection IS accepted by an identd, there will be no output unless you send a request first.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Mar 14, 2005 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-14T12:29:35-04:00</updated>

		<published>2005-03-14T12:29:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47636#p47636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47636#p47636"/>
		<title type="html"><![CDATA[ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47636#p47636"><![CDATA[
add "127.0.0.1 localhost" to /etc/hosts in your CYGWIN environment<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Mar 14, 2005 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T11:53:09-04:00</updated>

		<published>2005-03-14T11:53:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47632#p47632</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47632#p47632"/>
		<title type="html"><![CDATA[ident timeout on local telnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47632#p47632"><![CDATA[
<blockquote class="uncited"><div>[14:13:36] net: connect! sock 3<br>[14:13:36] DNS resolved 127.0.0.1 to localhost<br>[14:13:36] Telnet-Verbindung: localhost/2171<br>[14:13:37] dequeue_sockets(): errno = 128 (Transport endpoint is not connected) on 13<br>[14:14:02] Zeitueberschreitung/EOF bei der Ident-Verbindung<br>[14:14:10] Eingeloggt: De_Kus (telnet@localhost/2171)</div></blockquote>The problem is I always have to wait the 30 seconds until the request times out. The strange thing is, if I try manually connect to localhost:113 I will get imediedly response that port is closed, so I wonder why the bot waits 30s, if he should know within less than 1 there will not come any response because opening TCP port failed?!<br><blockquote class="uncited"><div>.tcl proc smalconnecttest {idx input} {putdcc 13 "\[[clock format [clock seconds] -format %T]\] '$input'"}<br>...<br>.tcl control [connect localhost 113] smalconnecttest<br>[16:42:01] tcl: builtin dcc call: *dcc:tcl De_Kus 13 control [connect localhost 113] smalconnecttest<br>[16:42:01] tcl: evaluate (.tcl): control [connect localhost 113] smalconnecttest<br>[16:42:01] WARNING: open_telnet_raw() is about to block in gethostbyname()!<br>Tcl:</div></blockquote>I tried this and got no call for smalconnecttest. It seems it's a general problem with the handling of telnet connections. Is it possible I missconfigured something in my .conf or can this safely be posted to bugzilla? I think control should REALLY call the proc and giving him an empty string to significate the connecting has been closed (and close it!).<br>because when I do some minuets later this:<div class="codebox"><p>Code: </p><pre><code>[16:49:37] #De_Kus# dccstatSOCK ADDR     PORT  NICK      HOST              TYPE---- -------- ----- --------- ----------------- ----...14   00000000   113 *         localhost         scri  smalconnecttest</code></pre></div>ADDR hasn't been edited!<br><br>btw. the testproc works as identifer for call of it:<blockquote class="uncited"><div>[16:41:28] tcl: evaluate (.tcl): smalconnecttest 235 test<br>[16:41:28] 'test'<br>Tcl:</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 11:53 am</p><hr />
]]></content>
	</entry>
	</feed>
