fix(scripting): #1064 the ScriptWorker applies the in-process result rule — a returned lazy sequence is materialised inside the run and held to Scripting:MaxResultElements (Hello.max_result_elements), same value and same failure text in both runners
This commit is contained in:
@@ -53,6 +53,11 @@ message Hello {
|
||||
// Test seam (lmxopcua#789): the worker's reader stops reading for good at the first DiagnosticsRequest while its
|
||||
// heartbeats go on, so the host's write-stall check can be exercised against a real worker. Never set in production.
|
||||
bool test_stall_reader_on_diag = 12;
|
||||
// lmxopcua#1064: Scripting:MaxResultElements. A value script's returned sequence is materialised inside the run and
|
||||
// held to this element cap, exactly as the in-process ScriptRunGuard does (ScriptResultMaterializer, #1059) — so a
|
||||
// lazy sequence is enumerated in the worker's run (under its deadlines), and an over-cap result fails the script the
|
||||
// same way in both runners. 0 = the worker's default (ScriptingOptions.DefaultMaxResultElements).
|
||||
uint32 max_result_elements = 13;
|
||||
}
|
||||
|
||||
message Ready {
|
||||
|
||||
Reference in New Issue
Block a user