Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9442d62b2f0a973ab3213ca2ada7649c7c788466
Ticket: 005871622748c6be3d1c7b4f743af7d772fa070f
http-4.16 fails on novem on OSX sierra
User & Date: dkf on 2017-08-02 23:34:49
Changes

  1. icomment:
    This is a rotten test since it isn't well isolated. Just running the test case itself produces no failures, but also running the other http-4.1? tests produces failures. However, if we introduce a bit of processing (a one-way set difference) then we exclude all the problems due to the preceding state and just look for if there is state leaking from the operations actually done in this test.
    <p>
    In other words, changing the test to this makes it pass (and produces far more comprehensible results too):
    <pre>
    test http-4.16 {Leak with Close vs Keepalive (bug [6ca52aec14]} -setup {
        proc list-difference {l1 l2} {
    	lmap item $l2 {if {$item in $l1} continue; set item}
        }
    } -body {
        set before [chan names]
        set token [http::geturl $url -headers {X-Connection keep-alive}]
        http::cleanup $token
        update
        # Compute what channels have been unexpectedly leaked past cleanup
        list-difference $before [chan names]
    } -cleanup {
        rename list-difference {}
    } -result {}
    </pre>
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"