Skip to content
Tcl Source Code History Of Ticket 824251ffffffffff
Login

History Of Ticket 824251ffffffffff

Artifacts Associated With Ticket 824251ffffffffff

  1. Ticket change [42e688f549] (rid 116453) by nobody on 2003-10-15 16:47:07:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The geturl documentation claims that, geturl will
      return immediatly with a token if the -command option
      is invoked.
      If geturl can not make the initial socket connection to
      a url, it blocks until the timeout expires and calls
      the -command proc before geturl has returned a token.
      This causes at least the following two problems:
      
      1. The block causes any following geturl calls to hang
      before processing. This destroys the asynchronious
      operation.
       
      2. It invokes the -command proc with a token that is as
      yet unknown to the general  processing loop.
      
      [email protected]
      
    4. foundin initialized to: "obsolete: 8.3.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "29. http Package"
    10. title initialized to: "geturl connection out of order"
    11. type initialized to: "Bug"
  2. Ticket change [11f755fa28] (rid 95236) by dkf on 2003-10-16 03:49:01:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      Problem (still in 8.5a0) is that [socket -async] still does
      the hostname -> IP address synchronously.  Which I've known
      about for ages, but it is really hard to fix.
      
      The problem is that the OS interface for doing the mapping
      is itself purely synchronous and a completely monolithic
      mess. Working around that requires a helper process or
      thread, and hence the whole thing is rather complex to fix.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "7 High"
    6. subsystem changed to: "27. Channel Types"
    7. username: "dkf"
  3. Ticket change [e31abde7ff] (rid 87733) by dgp on 2003-10-16 05:08:52:

    1. title changed to: "async client sockets block for DNS"
  4. Ticket change [2485b2467e] (rid 131117) by davygrvy on 2003-11-13 16:07:52:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      I can name that extension on windows in 45 minutes..
      
      Does BSD have anyway to do an async gethostbyname?  
      Does this fall into OS specific for sol/irix/linux/etc.. ?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  5. Ticket change [46bdf160af] (rid 99566) by dkf on 2003-11-13 21:42:32:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      The problem is the sheer complexity of stuff hidden under
      the covers.  If it was just DNS (or if there was a sensible
      way of parsing the config files across all platforms),
      that'd be so much easier.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  6. Ticket change [02b8b37509] (rid 119696) by dkf on 2005-04-27 04:44:48:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Joe English suggests using getaddrinfo() for name lookups
      instead of gethostbyname(). In terms of portability, it
      seems to be available identically on Linux, Solaris and IRIX
      for sure (no access to other Unix platforms!) and it is also
      the subject of standardization (see POSIX 1003.1g and RFC
      2553). IOW, perfect! And if there are platforms which don't
      support it, we could detect that in configure and fall back
      to the bad old gethostbyname() for [socket -async] processing.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [4e4eff585f] (rid 127204) by davygrvy on 2005-04-27 05:46:37:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      getaddrinfo() works on windows, too.  But where's the spec
      for timeout behavior?  Just for fun, I've been experimenting
      with an external helper app to be used for async name
      lookups.  If we launch it in an async pipe, problem solved.
      
      http://cvs.sf.net/viewcvs.py/iocpsock/iocpsock/tclname.c?rev=HEAD&view=auto
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  8. Ticket change [505dc34b25] (rid 125948) by dkf on 2005-04-27 06:28:40:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Doesn't seem to have any defined or controllable timeout
      behaviour. You might (on POSIX systems) be able to use a
      signal, but the result of doing so is undefined.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  9. Ticket change [a36025c5cc] (rid 110038) by dkf on 2012-07-03 14:54:03:

    1. icomment:
      Could also use a subprocess to do the resolution specifically for HTTP.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  10. Ticket change [ce745cd6df] (rid 96057) by dkf on 2012-08-27 22:47:50:

    1. assignee changed to: "coldstore"
    2. icomment:
      Worth looking at doing something about this (well, at least for the http package) after TIP #409 is done.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Later"
    6. username: "dkf"
  11. Ticket change [15269fb736] (rid 203939) by kjnash on 2022-09-08 16:47:51:

    1. assignee changed to: "aku"
    2. closer changed to: "nobody"
    3. comment changed to:
      The geturl documentation claims that, geturl will
      return immediatly with a token if the -command option
      is invoked.
      If geturl can not make the initial socket connection to
      a url, it blocks until the timeout expires and calls
      the -command proc before geturl has returned a token.
      This causes at least the following two problems:
      
      1. The block causes any following geturl calls to hang
      before processing. This destroys the asynchronious
      operation.
       
      2. It invokes the -command proc with a token that is as
      yet unknown to the general  processing loop.
      
      [email protected]
      
    4. icomment:
      I have added a workaround to 8.7 [608f2fbab4].
      
      The ::socket command is evaluated asynchronously in another thread while the script waits in the event loop.  Because the Thread package may not be present, the new facility is optional and is switched off by default.  Its use is controlled by the new http::config option -threadlevel.
      
      The new code runs in an idletask coroutine. This uses a trace to detect command completion, hence avoiding the stacking issues of vwait.
      
      The socket replacement command http::socket is short, and if desired it can easily be replaced with one that uses a different technique.
      
    5. login: "kjnash"
    6. mimetype: "text/x-fossil-plain"
    7. severity changed to: "Minor"