From: SourceForge.net <no...@so...> - 2010-10-18 17:57:50
|
Bugs item #3081008, was opened at 2010-10-04 12:54 Message generated for change (Comment added) made by dgp You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3081008&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 29. http Package Group: development: 8.6b1.1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Don Porter (dgp) Assigned to: Pat Thoyts (patthoyts) Summary: debug test failures Initial Comment: In a debug build of Tcl (--enable-symbols=all), a complete `make test` run reliably reports these failing tests: ==== http11-2.0 -channel FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok transfer-encoding] ---- Result was: ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} close chunked ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close chunked ==== http11-2.0 FAILED ==== http11-2.1 -channel, encoding gzip FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -headers {accept-encoding gzip}] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] ---- Result was: ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne 6d52cc3} close gzip chunked ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close gzip chunked ==== http11-2.1 FAILED ==== http11-2.2 -channel, encoding deflate FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -headers {accept-encoding deflate}] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] ---- Result was: ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} close deflate chunked ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close deflate chunked ==== http11-2.2 FAILED ==== http11-2.3 -channel,encoding compress FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -headers {accept-encoding compress}] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] ---- Result was: ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne ffff1d4} close compress chunked ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok close compress chunked ==== http11-2.3 FAILED ==== http11-2.10 -channel,deflate,keepalive FAILED ==== Contents of test case: set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -keepalive 1] http::wait $tok seek $chan 0 set data [read $chan] list [http::status $tok] [http::code $tok] [check_crc $tok $data] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[file size testfile.tmp]}] ---- Result was: ok {HTTP/1.1 200 OK} {crc32 mismatch: c554bc27 ne b946628e} {} deflate chunked 20203 ---- Result should have been (exact matching): ok {HTTP/1.1 200 OK} ok {} deflate chunked 0 ==== http11-2.10 FAILED When "-file http.test" is used to limit the testing to only that file, the tests pass. ---------------------------------------------------------------------- >Comment By: Don Porter (dgp) Date: 2010-10-18 13:57 Message: [$stream add -finalize {}] have different returns in the FAIL/SUCCEED scenarios. When the tests fail, the empty string is returned. ---------------------------------------------------------------------- Comment By: Alexandre Ferrieux (ferrieux) Date: 2010-10-18 13:50 Message: Funnily, the missing part in the write seems to be at the beginning. That is, the written file is a suffix of the original. I would hypothesize that the part of the body that is read along with the headers gets lost. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2010-10-18 12:37 Message: The http::wait commands in these tests appear pointless since all [geturl] calls are synchronous (no -command option). ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2010-10-18 12:22 Message: When the tests fail, the writes to testfile.tmp are incomplete. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2010-10-18 11:42 Message: same failures in a --enable-symbols=mem build. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2010-10-04 13:24 Message: Oops! The failing tests are in http11.test ! Single file testing is enough to see the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3081008&group_id=10894 |