diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-15 22:17:35 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-09-15 22:17:35 (GMT) |
commit | d171543388eb0149647f980eb25c80a9bfdadd1e (patch) | |
tree | 00985322b6d0333093834753ce16d1bd09acf375 | |
parent | b5fa09c67328376589d85fe0949248cff369d82a (diff) | |
parent | 9b0b59d046f223efca4855691ed4f476fa43b1b8 (diff) | |
download | tcl-d171543388eb0149647f980eb25c80a9bfdadd1e.zip tcl-d171543388eb0149647f980eb25c80a9bfdadd1e.tar.gz tcl-d171543388eb0149647f980eb25c80a9bfdadd1e.tar.bz2 |
merge 8.6
-rw-r--r-- | doc/http.n | 6 | ||||
-rw-r--r-- | tests/proc.test | 7 |
2 files changed, 10 insertions, 3 deletions
@@ -423,7 +423,7 @@ multiple interfaces are available. .TP \fB\-progress\fR \fIcallback\fR . -If the \fB\-progress\fR option is present, +If the \fB\-progress\fR option is present, then the \fIcallback\fR is made after each transfer of data from the URL. The value of \fIcallback\fR is expanded, an additional three arguments are added, and the resulting command is evaluated. @@ -493,7 +493,7 @@ unable to determine the size, it returns an error. .TP \fB\-queryprogress\fR \fIcallback\fR . -If the \fB\-queryprogress\fR option is present, +If the \fB\-queryprogress\fR option is present, then the \fIcallback\fR is made after each transfer of data to the URL in a POST request (i.e. a call to \fB::http::geturl\fR with option \fB\-query\fR or \fB\-querychannel\fR) and acts exactly like @@ -1593,7 +1593,7 @@ for integrating \fR::http::socket\fR into its own replacement command. .PP .SS "WITH A CHILD INTERPRETER" .PP -The peer thread can transfer the socket only to the main interpreter of the +The peer thread can transfer the socket only to the main interpreter of the script's thread. Therefore the thread-based \fB::http::socket\fR works with non-zero \fI\-threadlevel\fR values only if the script runs in the main interpreter. A child interpreter must use \fI\-threadlevel 0\fR unless the diff --git a/tests/proc.test b/tests/proc.test index b87af57..118dca1 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -412,6 +412,13 @@ test proc-7.5 {[631b4c45df] Crash in argument processing} { unset -nocomplain val } {} +test proc-7.6 {[51d5f22997] Crash in argument processing} -cleanup { + rename foo {} +} -body { + proc foo {{x {}} {y {}} args} {} + foo +} -result {} + # cleanup catch {rename p ""} |