Skip to content
Tcl Source Code View Ticket
Login

View Ticket

http1.0 failing test: httpold-4.12

Closed / Fixed2641672fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 4 years ago
Descriptionplain2009-02-26 13:18:35
Hi *,

running "configure; make; make test" on Linux with the current HEAD gives

==== httpold-4.12 httpEvent FAILED
==== Contents of test case:

    update
    set x {}
    after 500 {lappend x ok}
    set token [http_get $url -timeout 1 -command {lappend x fail}]
    vwait x
    list [http_status $token] $x

---- Result was:
ok ok
---- Result should have been (exact matching):
timeout ok
==== httpold-4.12 FAILED

on all architectures (x86, x86_64, ia64, s390x).

It does, however, not fail on AIX, HP-UX, and Solaris!

kind regards
-- Matthias Kraft
Referenced by5
  • 530a2b15acClosed ticket [3518301fff]: Tests assume nothing is already listening on port 9999 plus 4 other changes ticket2026-10-21 10:03:37
  • aaa3de736bcloses [2641672fff] - resolved timing sensitivity of httpold-4.12 and speed-up all httpd depending tests (removed 50ms delay unneeded in other cases) check-in2022-09-06 09:06:07
  • e6634132e3closes [2641672fff], httpd - don't parse delay argument by error 400 (wrong URI/proto) check-in2022-09-05 10:30:34
  • 8499001878amend to [2641672fff], guarantees a delay to cause a timeout definitely + switch delay-argument from post to get (it expects delay in query string of url) check-in2022-09-02 17:17:53
  • 6ac843c97freally closes [2641672fff] - resolved timing sensitivity of httpold-4.12 and speed-up all httpd depending tests (removed 50ms delay unneeded in other cases) check-in2022-09-02 17:02:56
dgpplain2009-02-26 22:14:37
the test is timing sensitive,
which makes it unreliable.
kjnashplain2022-05-30 21:12:16
This bug and the test file httpold.test relate to the http 1.0 package which is scheduled for removal in Tcl 8.7.
kjnash Ticket [2641672fff]: 3 changes [History diff]2022-05-31 00:15:23
jan.nijtmanswiki2022-09-02 14:13:00

httpold-4.12 is now marked "knownBug", so no need to worry about this any more

sebreswiki2022-09-02 17:06:17

[6ac843c97f] fixes that ultimately (and accelerates several tests depended on httpd)

sebres Ticket [2641672fff]: 4 changes [History diff]2022-09-02 17:19:51
jan.nijtmanswiki2022-09-03 13:14:30

Re-opening, because [6ac843c97f] causes build-failures in github actions:

Test file error: http.test bgerror
can't read "data(query)": no such variable
can't read "data(query)": no such variable
    while executing
"regexp {(?:^|[\?&])delay=([^&]+)} $data(query) {} val"
    (procedure "httpdRead" line 19)
    invoked from within
"httpdRead sock55eac8a464c0"
http.test bgerror
can't read "data(query)": no such variable
can't read "data(query)": no such variable
    while executing
"regexp {(?:^|[\?&])delay=([^&]+)} $data(query) {} val"
    (procedure "httpdRead" line 19)
    invoked from within
"httpdRead sock55eac8a1d610"

sebreswiki2022-09-05 10:31:42

done in [e6634132e3]

jan.nijtmanswiki2022-09-05 11:01:12

Thanks! Let's wait for github actions, just to be sure ..... ;-)

sebresplain2022-09-06 09:07:30
GHA succeed
Log in (anonymous is fine) to add a comment.