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

History Of Ticket 705956ffffffffff

Artifacts Associated With Ticket 705956ffffffffff

  1. Ticket change [ff675a3539] (rid 108749) by davygrvy on 2003-03-18 23:50:08:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      in http::geturl near the bottom of the proc is this:
      
      # if state(status) is error, it means someone's 
      already called Finish
      # to do the above-described clean up.
      if {[string equal $state(status) "error"]} {
      
      should be:
      
      # if state(status) is error, it means someone's 
      already called Finish
      # to do the above-described clean up.
      if {![string equal $state(status) "error"]} {
      
      See the new ! in the if expression.  Now the code 
      matches the comment and also works to close the 
      socket.
      
    4. foundin initialized to: "obsolete: 8.5a0"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "davygrvy"
    9. subsystem initialized to: "29. http Package"
    10. title initialized to: "doesn't cleanup from certain errors."
    11. type initialized to: "Bug"
  2. Ticket change [34a0ea9884] (rid 106782) by hobbs on 2003-07-17 06:23:42:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      is there an example test to exploit this?
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  3. Ticket change [218237522d] (rid 130595) by davygrvy on 2003-07-17 07:52:36:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      no, I don't happen to have one.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  4. Ticket change [eddcb170c9] (rid 103972) by davygrvy on 2003-07-18 01:34:31:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      If it's possible to have a connect, then have writes to the 
      socket throw an error, the problem will show itself.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  5. Ticket change [3850155411] (rid 112188) by davygrvy on 2003-07-18 02:09:54:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      Use httpd on windows for this.  You'll get that server socket 
      problem where clients are told connect, but the socket isn't 
      actually accepted on the server side.  Happens at about 16 
      requests per second on a 500mHz pIII.
      
      Use something like this:
      
      package require http
      
      proc m_httpCallback {token} {
          global howmuch
          set status [::http::status $token]
          ::http::cleanup $token
          puts "[incr howmuch -1] $status"
          if {$howmuch == 0} {puts Done!}
      }
      
      proc getem {url count} {
          global howmuch
          set howmuch $count
          for {set i $howmuch} {$i != 0} {incr i -1} {
      ::http::geturl $url -command [list m_httpCallback]
          }
      }
      
      getem http://localhost 200
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  6. Ticket change [c8ad12e751] (rid 122146) by davygrvy on 2003-12-17 08:24:09:

    1. title changed to: "http::geturl doesn't cleanup from certain errors."
  7. Ticket change [b99cb189de] (rid 129175) by hobbs on 2004-05-26 05:04:01:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      This is from change:
      2000-05-29  Sandeep Tamhankar <[email protected]>
      
      I'm not sure that the comment is correct though.  I don't
      see any negative effect in calling Finish, nor do I see that
      it is called in the above catch already.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. username: "hobbs"
  8. Ticket change [19e515f791] (rid 122878) by dgp on 2004-05-26 11:30:54:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      The comment appears correct
      to me.  The only code that
      sets state(status) to "error"
      (once the asynchronous
      [geturl] operations are underway)
      is in [Finish].  So at line 501...
      "if state(status) is error, it
      means someone's already called Finish"
      is a true statement.
      
      I can't say from that what conclusions
      should be drawn.  It's not clear to
      me whether [Finish] must be called
      exactly once, no more than once,
      or any number of times per connection.
      See my comments at 513385 about the
      need for a major refactoring of the
      interwoven nest of routines dealing
      with cleanup operations.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [cf8ba82814] (rid 113000) by davygrvy on 2004-05-26 11:43:36:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      but called less than zero, is much too little.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  10. Ticket change [f8b82566fd] (rid 91589) by patthoyts on 2008-02-29 06:16:12:

    1. closedate changed to: "2008-02-28T23:16:12"
    2. closer changed to: "patthoyts"
    3. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      I've applied this
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"