aboutsummaryrefslogtreecommitdiff
path: root/plugin/forward/persistent.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/forward/persistent.go')
-rw-r--r--plugin/forward/persistent.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/forward/persistent.go b/plugin/forward/persistent.go
index 7dc01326b..afa95d343 100644
--- a/plugin/forward/persistent.go
+++ b/plugin/forward/persistent.go
@@ -118,14 +118,14 @@ func (t *Transport) cleanup(all bool) {
}
}
-// It is hard to pin a value to this, the import thing is to no block forever, loosing at cached connection is not terrible.
+// It is hard to pin a value to this, the import thing is to no block forever, losing at cached connection is not terrible.
const yieldTimeout = 25 * time.Millisecond
// Yield return the connection to transport for reuse.
func (t *Transport) Yield(pc *persistConn) {
pc.used = time.Now() // update used time
- // Make ths non-blocking, because in the case of a very busy forwarder we will *block* on this yield. This
+ // Make this non-blocking, because in the case of a very busy forwarder we will *block* on this yield. This
// blocks the outer go-routine and stuff will just pile up. We timeout when the send fails to as returning
// these connection is an optimization anyway.
select {