Artifacts Associated With Ticket 533301
Ticket change [dc1385c729] (rid 108065) by rkaren on 2002-03-21 21:01:57:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized to:
set socket [socket $host $port] fconfigure -peername ;# or fconfigure # long delay, network specific- 5 seconds on mine much longer (minutes) on others. I also tried this with ver.8.0.
- foundin initialized to: "obsolete: 8.3.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "rkaren"
- subsystem initialized to: "24. Channel Commands"
- title initialized to: "fconfigure -peername very slow"
- type initialized to: "Bug"
Ticket change [e6d71de7c6] (rid 104358) by davygrvy on 2002-03-26 16:53:06:
- icomment:
Logged In: YES user_id=7549 It's related to DNS reverse lookup, I think.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [7963d3d019] (rid 90116) by rkaren on 2002-03-31 08:31:47:
- icomment:
Logged In: YES user_id=489489 Yes, I figured that, but it would be nice if it timed out. I sent code to someone that slowed a 30 second process down to 20 minutes because of some diagnostic messages that were printing [fconfigure $sock] results. RK
- login: "rkaren"
- mimetype: "text/plain"
- username: "rkaren"
- icomment:
Ticket change [461c3045be] (rid 99466) by davygrvy on 2002-04-07 11:50:17:
- icomment:
Logged In: YES user_id=7549 That might be a global setting on the machine regarding the sockets implimentation for getXbyY(). Off-hand, I don't know of a localized way to set a getXbyY timeout. Then again, it's been ages since I've done any sockets programming.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [59b787bbfd] (rid 118013) by dkf on 2002-04-08 16:22:10:
- icomment:
Logged In: YES user_id=79902 There's no parameter for timeout on standard getXbyY calls (nor any guarantee on what underlying lookup mechanism will be used; I know of systems that use host files, DNS and NIS+, and could well believe it if others used LDAP or something equally horrific) and they are all synchronous. This sucks, but it is not our fault. :^( Suggested fix: helper processes/threads, perhaps with a clever cache (with timed expiry) as well. There are a number of interesting issues with how you bind this into Tcl though, particularly in relation to async socket handling and whether people should be penalized for information they don't look at...
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [d8044cbd5e] (rid 107369) by cdclercq on 2005-09-19 14:45:36:
- icomment:
Logged In: YES user_id=617750 When using ActiveTcl ftp package I have exactly the same thing. But only on Solaris (not on Windows). I takes sometimes more than a minut (sometimes a timeout) to do a set peer [fconfigure $ftp(CtrlSock) -peername]. * We only have this when starting on Solaris connecting to Windows via a Fortigate 200 Antivirus Appl. and a firewall.
- login: "cdclercq"
- mimetype: "text/plain"
- username: "cdclercq"
- icomment:
Ticket change [2092b27f47] (rid 130452) by dkf on 2012-07-03 15:15:40:
- icomment:
This needs to be reevaluated with 8.6 to see if it is still relevant; we now use getaddrinfo() for name resolution (so we can handle IPv6 and avoid a whole pack of thread problems). However, IIRC reverse name lookup was found to be such a huge cost (in Wub) that a mitigation strategy was put in place: set the variable ::tcl::unsupported::noReverseDNS to something (anything!) and reverse DNS will be switched off in that interpreter. That was not backported to 8.5 or before. It might be worth doing.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [dfecc50cd2] (rid 115102) by dkf on 2012-07-03 15:15:41:
- assignee changed to: "rmax"
Ticket change [50ac834a75] (rid 126014) by rmax on 2012-07-03 22:42:09:
- icomment:
::tcl::unsupported::noReverseDNS was only meant as a temporary workaround for WUB to fiix the performance problems of the Tcl'ers wiki. I think backporting should wait until a final mechanism for avoiding reverse DNS lookups has been added to 8.6. Suggestions for how such a mechanism could/should look like are welcome.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment:
Ticket change [0d10630c00] (rid 114293) by ferrieux on 2012-07-04 04:53:22:
- icomment:
Yes, but it goes beyond just fixing the Wiki. While the unsupported namespace is clearly not meant to hots it forever, the advantage of a global switch like this is that it avoids the proliferation of "fixed" fconfigure options like -peerhostport and -sockhostport. Another nice feature is that it allows to fix a whole app with a single line (unlike a per-channel [fconfigure -norevdns]), as it appears in hindsight that reverse DNS is almost always a bad idea.
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [a3383a86c6] (rid 110017) by rmax on 2012-07-04 05:03:14:
- icomment:
I wouldn't say generally that reverse DNS is a bad idea, but enforcing it in situations where the result might not even be used was a bad decision. One way out without breaking backwards compatibility might be to change -sockname and -peername to always return the IP address in place of the host name and provide a separate command for reverse lookup.
- login: "rmax"
- mimetype: "text/plain"
- username: "rmax"
- icomment: