Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cf023eb11cd5d1f938535e7263ad832858157ab1
Ticket: db0a5f6417bcd5f8dbd37377daf1488b60b0c8f0
Tests zlib-8.9 and zlib-8.11 fail with trunk [c7cea9d704] for MSWin 32/MSVC6
User & Date: apnadkarni on 2016-07-22 03:25:24
Changes

  1. icomment:
    Changed my test snippet as below based on aspect's -blocking hint. This now runs on my Windows 8 system with no apparent failures over 50000 iterations. Not changed the actual tests themselves.
    
    proc go {} {
        set spdyHeaders "HTTP/1.0 200 OK\r\nContent-Type: text/html; charset=utf-8\r\nX-Robots-Tag: noarchive\r\nLast-Modified: Tue, 05 Jun 2012 02:43:25 GMT\r\nETag: \"1338864205129|#public|0|en|||0\"\r\nExpires: Tue, 05 Jun 2012 16:17:11 GMT\r\nDate: Tue, 05 Jun 2012 16:17:06 GMT\r\nCache-Control: public, max-age=5\r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nServer: GSE\r\n"
        set spdyDict "optionsgetheadpostputdeletetraceacceptaccept-charsetaccept-encodingaccept-languageauthorizationexpectfromhostif-modified-sinceif-matchif-none-matchif-rangeif-unmodifiedsincemax-forwardsproxy-authorizationrangerefererteuser-agent100101200201202203204205206300301302303304305306307400401402403404405406407408409410411412413414415416417500501502503504505accept-rangesageetaglocationproxy-authenticatepublicretry-afterservervarywarningwww-authenticateallowcontent-basecontent-encodingcache-controlconnectiondatetrailertransfer-encodingupgradeviawarningcontent-languagecontent-lengthcontent-locationcontent-md5content-rangecontent-typeetagexpireslast-modifiedset-cookieMondayTuesdayWednesdayThursdayFridaySaturdaySundayJanFebMarAprMayJunJulAugSepOctNovDecchunkedtext/htmlimage/pngimage/jpgimage/gifapplication/xmlapplication/xhtmltext/plainpublicmax-agecharset=iso-8859-1utf-8gzipdeflateHTTP/1.1statusversionurl"
        lassign [chan pipe] inSide outSide
        set strm [zlib stream inflate]
        zlib push deflate $outSide -dictionary $spdyDict
        fconfigure $outSide -blocking 0 -translation binary -buffering none
        fconfigure $inSide -blocking 1 -translation binary
        puts -nonewline $outSide $spdyHeaders
        chan pop $outSide
        close $outSide
        $strm put -dictionary $spdyDict [read $inSide]
        set result [list [string length $spdyHeaders] [string length [$strm get]]]
        close $inSide
        $strm close
        return $result
    }
    
    if {[llength $argv]} {
        set fails 0
        set oks 0
        for {set i 0} {$i < [lindex $argv 0]} {incr i} {
            if {[go] eq "358 358"} {incr oks} else {incr fails}
        }
        puts "ok=$oks, fail=$fails"
    }
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"