timeout change to 80% of its interval
This commit is contained in:
		
							parent
							
								
									24b87fcd5a
								
							
						
					
					
						commit
						b14f63491d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -110,7 +110,7 @@ class Monitor extends BeanModel { | ||||||
|                     // Use Custom agent to disable session reuse
 |                     // Use Custom agent to disable session reuse
 | ||||||
|                     // https://github.com/nodejs/node/issues/3940
 |                     // https://github.com/nodejs/node/issues/3940
 | ||||||
|                     let res = await axios.get(this.url, { |                     let res = await axios.get(this.url, { | ||||||
|                         timeout: 15000, |                         timeout: this.interval * 1000 * 0.8, | ||||||
|                         headers: { |                         headers: { | ||||||
|                             "Accept": "*/*", |                             "Accept": "*/*", | ||||||
|                             "User-Agent": "Uptime-Kuma", |                             "User-Agent": "Uptime-Kuma", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue