We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bbb2d4 commit 064cdebCopy full SHA for 064cdeb
server/get_header.go
@@ -252,6 +252,8 @@ loop:
252
case <-ticker.C:
253
// dec the remaining timeout budget and send request
254
if timeoutLeftMs > relayConfig.FrequencyGetHeaderMs {
255
+ // decreasing the remaining timeout budget, so subsequent get_header
256
+ // requests get less and less time from the overall budget
257
timeoutLeftMs -= relayConfig.FrequencyGetHeaderMs
258
wg.Add(1)
259
go sendTimedRequest(timeoutLeftMs)
0 commit comments