Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1fb4b69734bb4785d64287db91938233bcd36959
Ticket: 578160ffffffffffffffffffffffffffffffffff
http-3.11 fails intermittently on Win32
User & Date: kennykb on 2002-07-06 17:54:28
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The 'http-3.11' test suffers from intermittent failures
    under Windows NT, 2k and XP.  The apparent reason
    is that the subprocess has not yet released the lock
    on 'outfile' at the time that the main process calls
    'removeFile.'
    
    
    ==== http-3.11 http::geturl querychannel with -command FAILED
    ==== Contents of test case:
    
        set query foo=bar
        set sep ""
        set i 0
        # Create about 120K of query data
        while {$i < 14} {
            incr i
            append query $sep$query
            set sep &
        }
        set file [makeFile $query outdata]
        set fp [open $file]
    
        proc asyncCB {token} {
            global postResult
            lappend postResult [http::data $token]
        }
        set postResult [list ]
        set t [http::geturl $posturl -querychannel $fp]
        http::wait $t
        set testRes [list [http::status $t] [string length $query] [http::data $t]]
    
        # Now do async
        http::cleanup $t
        close $fp
        set fp [open $file]
        set t [http::geturl $posturl -querychannel $fp -command asyncCB]
        set postResult [list PostStart]
        http::wait $t
    
        lappend testRes [http::status $t] $postResult
        removeFile outdata
        set testRes
    
    ---- Result was:
    error deleting "D:/SourceForge/tcl/win/outdata": permission denied
    ---- Result should have been (exact matching):
    ok 122879 {Got 122880 bytes} ok {PostStart {Got 122880 bytes}}
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== http-3.11 FAILED
    
    
  4. foundin changed to: "obsolete: 8.4b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "29. http Package"
  10. title changed to: "http-3.11 fails intermittently on Win32"
  11. type changed to: "Bug"