Skip to content
Tcl Source Code History Of Ticket 3581754fffffffff
Login

History Of Ticket 3581754fffffffff

Artifacts Associated With Ticket 3581754fffffffff

  1. Ticket change [8045051e06] (rid 97711) by kjnash on 2012-10-30 02:57:47:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      If http::geturl is called with -keepalive 1 and a -command that enters the
       event loop (e.g for an authorization dialog), and the HTTP response
       includes a "Content-Length" header, then a (slow) race condition ensues
       between the server's closing of the connection, and the user's response to
       the dialog. If the connection is closed first, the unpatched code fails at
       line 1126 with repeated eof fileevents, because the command http::Eof tries
       repeatedly to run the user's -command, and never returns. This can be
       reported as "too many nested evaluations".
      
       While it might not be good style to allow the -command script to enter the
       event loop, http(n) does not exclude this possibility.
      
       There's more than one way to fix the bug. Two possible patches are
       attached. EIther will fix the bug; both fixes can be applied.
      
       Patches against core-8-5-branch checkin 69687a01db, dated 2012-10-24
       11:28:33.
      
    4. foundin initialized to: "obsolete: 8.5.12"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "kjnash"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      EOF detection when a server closes a keep-alive  connection
      
    12. type initialized to: "Bug"
  2. Add attachment "http-fix1-for--69687a01db.patch" [ccd70fd692] (rid 95773) by kjnash on 2012-10-30 09:57:49.

  3. Ticket change [bb67255f55] (rid 129475) by kjnash on 2012-10-30 09:57:49:

    1. icomment:
      
      
      File Added - 455664: http-fix1-for--69687a01db.patch
      
      
      
    2. login: "kjnash"
    3. mimetype: "text/plain"
    4. username: "kjnash"
  4. Add attachment "http-fix2-for--69687a01db.patch" [793291324d] (rid 90090) by kjnash on 2012-10-30 10:02:09.

  5. Ticket change [5321b0e4ae] (rid 126430) by kjnash on 2012-10-30 10:02:09:

    1. icomment:
      
      
      File Added - 455665: http-fix2-for--69687a01db.patch
      
      
      
    2. login: "kjnash"
    3. mimetype: "text/plain"
    4. username: "kjnash"
  6. Ticket change [75bbc4d122] (rid 105435) by dgp on 2012-11-06 01:20:19:

    1. assignee changed to: "dkf"
    2. icomment:
      Please report whether these patches, or some
      other resolution of this item is needed before
      a Tcl 8.5.13 release.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. priority changed to: "9 Immediate"
    6. username: "dgp"
  7. Ticket change [f2aee3b0e6] (rid 109599) by dkf on 2012-11-06 17:20:37:

    1. assignee changed to: "patthoyts"
    2. icomment:
      Fix 2 should probably be applied anyway. That's the thing to apply for 8.5.13 (and I'll get that in in a few minutes).
      
      Fix 1 is more interesting (and doesn't mean that Fix2 shouldn't be used as well) but it requires review by someone who knows more about the http package's functioning in the presence of keepalives.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  8. Ticket change [53edf8c2a1] (rid 93844) by dkf on 2012-11-06 17:41:39:

    1. icomment:
      Applied variation on Fix 2 (don't use [unset], but rather another flag var in the state).
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dkf"
  9. Ticket change [04dab8f1e3] (rid 162333) by kjnash on 2018-04-12 14:05:45:

    1. closedate changed to: "2458221.08733277"
    2. closer changed to: "kjnash"
    3. comment changed to:
      If http::geturl is called with -keepalive 1 and a -command that enters the
       event loop (e.g for an authorization dialog), and the HTTP response
       includes a "Content-Length" header, then a (slow) race condition ensues
       between the server's closing of the connection, and the user's response to
       the dialog. If the connection is closed first, the unpatched code fails at
       line 1126 with repeated eof fileevents, because the command http::Eof tries
       repeatedly to run the user's -command, and never returns. This can be
       reported as "too many nested evaluations".
      
       While it might not be good style to allow the -command script to enter the
       event loop, http(n) does not exclude this possibility.
      
       There's more than one way to fix the bug. Two possible patches are
       attached. EIther will fix the bug; both fixes can be applied.
      
       Patches against core-8-5-branch checkin 69687a01db, dated 2012-10-24
       11:28:33.
      
    4. icomment: "Thanks for the fix. I've closed the ticket."
    5. login: "kjnash"
    6. mimetype: "text/plain"
    7. severity changed to: "Minor"
    8. status changed to: "Closed"