diff options
author | sebres <sebres@users.sourceforge.net> | 2022-09-02 17:17:53 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2022-09-02 17:17:53 (GMT) |
commit | 337b5ab155b13596235bd36549efe9673cc6c7c9 (patch) | |
tree | 4791fad56341132da3ff5a4ad8f519f8ec6e7d04 /tests/httpd | |
parent | 3fa8112c7afe69df643dcccb9570e698f2173da4 (diff) | |
download | tcl-337b5ab155b13596235bd36549efe9673cc6c7c9.zip tcl-337b5ab155b13596235bd36549efe9673cc6c7c9.tar.gz tcl-337b5ab155b13596235bd36549efe9673cc6c7c9.tar.bz2 |
amend 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)
Diffstat (limited to 'tests/httpd')
-rw-r--r-- | tests/httpd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/httpd b/tests/httpd index 9fd23e7..682556b 100644 --- a/tests/httpd +++ b/tests/httpd @@ -69,7 +69,7 @@ proc httpdRead { sock } { httpd_log $sock Error "bad first line:$line" httpdSockDone $sock } - if {[regexp {[\?&]delay=([^&]+)} val]} { + if {[regexp {(?:^|[\?&])delay=([^&]+)} $data(query) {} val]} { fileevent $sock readable {} after $val [list fileevent $sock readable [list httpdRead $sock]] } |