Skip to content
Tcl Source Code History Of Ticket 477198ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 477198ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 477198ffffffffffffffffffffffffffffffffff

  1. Ticket change [153b811f9e] (rid 124535) by nobody on 2001-11-01 16:56:59:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It seems that the ::http::geturl command leaks memory
      in the Win32 version of TCL 8.3.4. This was not the
      case in TCL 8.3.3. The attached file shows this
      behavior; source it in tclsh83 and observe the memory
      allocation grow in Task Manager.
      
    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: "nobody"
    9. subsystem initialized to: "29. http Package"
    10. title initialized to: "::http::geturl leaks memory on Win32"
    11. type initialized to: "Bug"
  2. Ticket change [c05d1ffe71] (rid 102387) by nobody on 2001-11-02 00:00:47:

    1. icomment:
      Logged In: NO 
      
      Seems like the file upload didn't take. Since the example is
      fairly short, I'm attaching it here. Commenting out the
      geturl call results in no memory being leaked.
      
      package require http
      
      ::http::config -useragent "Mozilla/5.0 (Windows; U;
      WinNT4.0; en-US; rv:0.9.5) Gecko/20011011"
      
      set url "http://www.usps.gov/cgi-bin/zip4/ctystzip2"
      
      set zip 1000
      while { $zip < 100000 } {
      set zipcode $zip
      if { [string length $zipcode] < 5 } { set zipcode "0$zipcode" }
      puts "$zipcode"
      
      set query [::http::formatQuery ctystzip $zipcode]
      set http  [::http::geturl $url -query $query]
      
      incr zip
      }
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  3. Ticket change [421c371a69] (rid 116304) by hobbs on 2001-11-02 00:05:47:

    1. closedate changed to: "2001-11-01T17:05:47"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      Please note that ::http::geturl requires that the returned 
      token is eventually freed with ::http::cleanup (when you no 
      longer need that information about the connection).  This 
      is in the docs.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"