[ZBX-20405] Script item timeout is not working Created: 2021 Dec 30  Updated: 2024 Apr 10  Resolved: 2022 Jan 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 5.4.9, 6.0.0beta1
Fix Version/s: 5.0.20rc1, 5.4.10rc1, 6.0.0beta3, 6.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Vjaceslavs Bogdanovs Assignee: Dmitrijs Goloscapovs
Resolution: Fixed Votes: 0
Labels: js, scriptitem, timeout
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 84 (Jan 2022)
Story Points: 1

 Description   

Steps to reproduce:

  1. Create script item with the default timeout (3s) and the following script:
var result = '',
    request = new HttpRequest();

while (true) {
    result += request.get('https://deelay.me/2000/https://assets.zabbix.com/img/favicon.ico');
}

return result; 
  1. Reload the configuration cache and use the Execute Now button to retrieve the value.
  2. Observe that item is not receiving data and is not receiving the timeout error for a long time (much longer than the defined timeout).

Expected:
It is expected that timeout specified would be tolerated better and the item would not stay in this "hanged" state for a long period of time.



 Comments   
Comment by Dmitrijs Goloscapovs [ 2022 Jan 07 ]

Available in versions:

Generated at Thu Apr 10 10:41:53 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.