mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	middleware/httproxy: smaller timeouts
Make the timeouts smaller after we fail to connect.
This commit is contained in:
		| @@ -22,7 +22,7 @@ func newSimpleUpstream(hosts []string) (*simpleUpstream, error) { | ||||
| 	upstream := &simpleUpstream{ | ||||
| 		Hosts:       nil, | ||||
| 		Policy:      &proxy.Random{}, | ||||
| 		FailTimeout: 10 * time.Second, | ||||
| 		FailTimeout: 3 * time.Second, | ||||
| 		MaxFails:    3, | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user