Skip to content
Tcl Source Code History Of Ticket 533301
Login

History Of Ticket 533301

Artifacts Associated With Ticket 533301

  1. Ticket change [dc1385c729] (rid 108065) by rkaren on 2002-03-21 21:01:57:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.3.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "rkaren"
    9. subsystem initialized to: "24. Channel Commands"
    10. title initialized to: "fconfigure -peername very slow"
    11. type initialized to: "Bug"
  2. Ticket change [e6d71de7c6] (rid 104358) by davygrvy on 2002-03-26 16:53:06:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      It's related to DNS reverse lookup, I think.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [7963d3d019] (rid 90116) by rkaren on 2002-03-31 08:31:47:

    1. 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
      
      
    2. login: "rkaren"
    3. mimetype: "text/plain"
    4. username: "rkaren"
  4. Ticket change [461c3045be] (rid 99466) by davygrvy on 2002-04-07 11:50:17:

    1. 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.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  5. Ticket change [59b787bbfd] (rid 118013) by dkf on 2002-04-08 16:22:10:

    1. 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...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [d8044cbd5e] (rid 107369) by cdclercq on 2005-09-19 14:45:36:

    1. 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.
      
      
      
      
      
      
    2. login: "cdclercq"
    3. mimetype: "text/plain"
    4. username: "cdclercq"
  7. Ticket change [2092b27f47] (rid 130452) by dkf on 2012-07-03 15:15:40:

    1. 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.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  8. Ticket change [dfecc50cd2] (rid 115102) by dkf on 2012-07-03 15:15:41:

    1. assignee changed to: "rmax"
  9. Ticket change [50ac834a75] (rid 126014) by rmax on 2012-07-03 22:42:09:

    1. 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.
      
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"
  10. Ticket change [0d10630c00] (rid 114293) by ferrieux on 2012-07-04 04:53:22:

    1. 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.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  11. Ticket change [a3383a86c6] (rid 110017) by rmax on 2012-07-04 05:03:14:

    1. 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.
      
      
    2. login: "rmax"
    3. mimetype: "text/plain"
    4. username: "rmax"