|
2026-10-13
| ||
| 12:23 | • Closed ticket [d22dc7e9ca]: socket -async leaves the socket non-blocking when th... artifact: 65a92a358d user: jan.nijtmans | |
|
2012-05-04
| ||
| 01:29 | • Ticket [3428753fff] http test suite failing status still Closed with 4 other... artifact: 4fa0bf7fc3 user: dgp | |
| 01:29 | • Closed ticket [3428753fff]. artifact: 20654b7671 user: dgp | |
| 00:36 | • Ticket [3428753fff]: 4 changes artifact: 25665deb81 user: dgp | |
| 00:35 | • Ticket [3428753fff]: 4 changes artifact: a68ce05e8d user: dgp | |
| 00:28 | • Ticket [3428753fff]: 4 changes artifact: 8bfe1e2e0a user: dgp | |
| 00:16 | • Ticket [3428753fff]: 4 changes artifact: 32b27c502c user: dgp | |
| 00:15 | • Ticket [3428753fff]: 4 changes artifact: 10c3693d3b user: dgp | |
| 00:11 | • Ticket [3428753fff]: 4 changes artifact: 890f819e6a user: dgp | |
| 00:01 | • Ticket [3428753fff]: 4 changes artifact: 0d297fe0d5 user: dgp | |
| 00:00 | • Ticket [3428753fff]: 7 changes artifact: ea0a8301ce user: dgp | |
|
2012-05-03
| ||
| 21:17 | • Ticket [3428753fff]: 4 changes artifact: 1d6ac41723 user: dgp | |
| 03:43 | • Ticket [3428753fff]: 4 changes artifact: 53fe22c745 user: dgp | |
|
2012-05-02
| ||
| 23:38 | • Ticket [3428753fff]: 4 changes artifact: 9f4c713a9b user: dgp | |
| 20:24 | • Ticket [3428753fff]: 4 changes artifact: 18a3a4e534 user: lvirden | |
|
2011-10-26
| ||
| 12:49 | • New ticket [3428753fff]. artifact: e2773806ba user: lvirden | |
http test suite failing
Closed / Fixed3428753fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-10-26 12:49:30
platform: sparc solaris 10, using Sun C compiler, and tcl cvs head.
configued with:
./configure --prefix=/projects/sprs_lwv/tcl86 --enable-shared --enable-symbols --enable-stubs --enable-threads
during the test, the following http test suite failures were encountered
==== http-3.8 http::geturl FAILED
==== Contents of test case:
set token [http::geturl $url -query Name=Value&Foo=Bar -timeout 2000]
http::data $token
---- Result was:
---- Result should have been (exact matching):
<html><head><title>HTTP/1.0 TEST</title></head><body>
<h1>Hello, World!</h1>
<h2>POST /a/b/c</h2>
<h2>Query</h2>
<dl>
<dt>Name<dd>Value
<dt>Foo<dd>Bar
</dl>
</body></html>
==== http-3.8 FAILED
==== http-3.25 http::meta FAILED
==== Contents of test case:
set token [http::geturl $url -timeout 2000]
array set m [http::meta $token]
lsort [array names m]
---- Result was:
---- Result should have been (exact matching):
Content-Length Content-Type Date
==== http-3.25 FAILED
http11.test
==== http11-1.0 normal request for document FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 10000]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close
==== http11-1.0 FAILED
==== http11-1.1 normal,gzip,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -headers {accept-encoding gzip}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok gzip {}
==== http11-1.1 FAILED
==== http11-1.2 normal,deflated,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -headers {accept-encoding deflate}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok deflate {}
==== http11-1.2 FAILED
==== http11-1.3 normal,compressed,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -headers {accept-encoding compress}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok compress {}
==== http11-1.3 FAILED
==== http11-1.4 normal,identity,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -headers {accept-encoding identity}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {} {}
==== http11-1.4 FAILED
==== http11-1.5 normal request for document, unsupported coding FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 10000 -headers {accept-encoding unsupported}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {}
==== http11-1.5 FAILED
==== http11-1.6 normal, specify 1.1 FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -protocol 1.1 -timeout 10000]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close chunked
==== http11-1.6 FAILED
==== http11-1.7 normal, 1.1 and keepalive FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -protocol 1.1 -keepalive 1 -timeout 10000]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {} chunked
==== http11-1.7 FAILED
==== http11-1.8 normal, 1.1 and keepalive, server close FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -protocol 1.1 -keepalive 1 -timeout 10000]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok connection] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close {}
==== http11-1.8 FAILED
==== http11-1.9 normal,gzip,chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 10000 -headers {accept-encoding gzip}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok gzip chunked
==== http11-1.9 FAILED
==== http11-1.12 normal,identity,chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 10000 -headers {accept-encoding identity}]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok] [meta $tok content-encoding] [meta $tok transfer-encoding]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {} chunked
==== http11-1.12 FAILED
==== 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:
timeout {} {crc32 mismatch: ne 0} {} {}
---- 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:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- 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:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- 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:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close compress chunked
==== http11-2.3 FAILED
==== http11-2.4 -channel,encoding identity FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -headers {accept-encoding identity}]
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:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close {} chunked
==== http11-2.4 FAILED
==== http11-2.5 -channel,encoding unsupported FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 5000 -channel $chan -headers {accept-encoding unsupported}]
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:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close {} chunked
==== http11-2.5 FAILED
==== http11-2.6 -channel,encoding gzip,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -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] [expr {[file size testdoc.html]-[file size testfile.tmp]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close gzip {} 0
==== http11-2.6 FAILED
==== http11-2.7 -channel,encoding deflate,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -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] [expr {[file size testdoc.html]-[file size testfile.tmp]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close deflate {} 0
==== http11-2.7 FAILED
==== http11-2.8 -channel,encoding compress,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -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] [expr {[file size testdoc.html]-[file size testfile.tmp]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close compress {} 0
==== http11-2.8 FAILED
==== http11-2.9 -channel,encoding identity,non-chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 5000 -channel $chan -headers {accept-encoding identity}]
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:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok close {} {} 0
==== http11-2.9 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:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {} deflate chunked 0
==== http11-2.10 FAILED
==== http11-2.11 -channel,identity,keepalive FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -headers {accept-encoding identity} -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]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {}
---- Result should have been (exact matching):
ok {HTTP/1.1 200 OK} ok {} {} chunked
==== http11-2.11 FAILED
==== http11-3.0 -handler,close,identity FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -handler [namespace code [list handler testdata]]]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok $testdata] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[string length $testdata]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.0 200 OK} ok close {} {} 0
==== http11-3.0 FAILED
==== http11-3.1 -handler,protocol1.0 FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html?close=1 -timeout 10000 -protocol 1.0 -handler [namespace code [list handler testdata]]]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok $testdata] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[string length $testdata]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.0 200 OK} ok close {} {} 0
==== http11-3.1 FAILED
==== http11-3.3 -handler,keepalive,chunked FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -timeout 10000 -keepalive 1 -binary 1 -handler [namespace code [list handler testdata]]]
http::wait $tok
list [http::status $tok] [http::code $tok] [check_crc $tok $testdata] [meta $tok connection] [meta $tok content-encoding] [meta $tok transfer-encoding] [expr {[file size testdoc.html]-[string length $testdata]}]
---- Result was:
timeout {} {crc32 mismatch: ne 0} {} {} {} 130037
---- Result should have been (exact matching):
ok {HTTP/1.0 200 OK} ok close {} {} 0
==== http11-3.3 FAILED
==== http11-4.0 normal post request FAILED
==== Contents of test case:
set query [http::formatQuery q 1 z 2]
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -query $query -timeout 10000]
http::wait $tok
list status [http::status $tok] code [http::code $tok] crc [check_crc $tok] connection [meta $tok connection] query-length [meta $tok x-query-length]
---- Result was:
status timeout code {} crc {crc32 mismatch: ne 0} connection {} query-length {}
---- Result should have been (exact matching):
status ok code {HTTP/1.1 200 OK} crc ok connection close query-length 7
==== http11-4.0 FAILED
==== http11-4.1 normal post request, check query length FAILED
==== Contents of test case:
set query [http::formatQuery q 1 z 2]
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -headers [list x-check-query yes] -query $query -timeout 10000]
http::wait $tok
list status [http::status $tok] code [http::code $tok] crc [check_crc $tok] connection [meta $tok connection] query-length [meta $tok x-query-length]
---- Result was:
status timeout code {} crc {crc32 mismatch: ne 0} connection {} query-length {}
---- Result should have been (exact matching):
status ok code {HTTP/1.1 200 OK} crc ok connection close query-length 7
==== http11-4.1 FAILED
==== http11-4.2 normal post request, check long query length FAILED
==== Contents of test case:
set query [string repeat a 24576]
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -headers [list x-check-query yes] -query $query -timeout 10000]
http::wait $tok
list status [http::status $tok] code [http::code $tok] crc [check_crc $tok] connection [meta $tok connection] query-length [meta $tok x-query-length]
---- Result was:
status timeout code {} crc {crc32 mismatch: ne 0} connection {} query-length {}
---- Result should have been (exact matching):
status ok code {HTTP/1.1 200 OK} crc ok connection close query-length 24576
==== http11-4.2 FAILED
==== http11-4.3 normal post request, check channel query length FAILED
==== Contents of test case:
set tok [http::geturl http://localhost:$httpd_port/testdoc.html -headers [list x-check-query yes] -querychannel $chan -timeout 10000]
http::wait $tok
list status [http::status $tok] code [http::code $tok] crc [check_crc $tok] connection [meta $tok connection] query-length [meta $tok x-query-length]
---- Result was:
status timeout code {} crc {crc32 mismatch: ne 0} connection {} query-length {}
---- Result should have been (exact matching):
status ok code {HTTP/1.1 200 OK} crc ok connection close query-length 122880
==== http11-4.3 FAILED
lvirdenplain2012-05-02 20:24:32
Note - just downloaded the CVS head from ftp.tcl.tk.. These errors continue to occur.
dgpplain2012-05-02 23:38:12
Reproduced on trunk. Bisecting...
dgpplain2012-05-03 03:43:54
Failures begin with checkin b56716f2ac6b6dc0e769 2011-06-28 11:32:15
dgpplain2012-05-03 21:17:33
That checkin was meant to fix Bug 3325339
dgpplain2012-05-04 00:00:21
The difference between the failing operation on Solaris and success on another system (Centos Linux) is in the value returned by the connect() call in CreateClientSocket(). On the working system, status = -1 is returned and things are setup for a callback that works. On the failing system connect() returns status=0. We flow down to the out: section and on out of the routine without doing anything else. Don't yet understand how that leads to failure.
dgpplain2012-05-04 00:01:09
The difference between the failing operation on Solaris and success on another system (Centos Linux) is in the value returned by the connect() call in CreateClientSocket(). On the working system, status = -1 is returned and things are setup for a callback that works. On the failing system connect() returns status=0. We flow down to the out: section and on out of the routine without doing anything else. Don't yet understand how that leads to failure.
dgpplain2012-05-04 00:11:29
Aside from bug fixing, CreateClientSocket() could really use a rewrite. It's a terrible tangle of gotos.
dgpplain2012-05-04 00:15:51
Aside from bug fixing, CreateClientSocket() could really use a rewrite. It's a terrible tangle of gotos.
dgpplain2012-05-04 00:16:43
Aside from bug fixing, CreateClientSocket() could really use a rewrite. It's a terrible tangle of gotos.
dgpplain2012-05-04 00:28:36
More details on the failure, when [socket -async $host $port] returns a socket that's already connected, the file writable event is failing to trigger, so we timeout rather than make a call to [http::Connect].
dgpplain2012-05-04 00:35:32
Problem is the failure to clear the TCP_ASYNC_CONNECT flag bit.
dgpplain2012-05-04 00:36:23
Problem is the failure to clear the TCP_ASYNC_CONNECT flag bit.
dgpplain2012-05-04 01:29:15
allow_comments - 1 fixed on trunk.
dgpplain2012-05-04 01:29:29
fixed on trunk.
Log in (anonymous is fine) to add a comment.