aboutsummaryrefslogtreecommitdiff
path: root/plugin.cfg
diff options
context:
space:
mode:
authorGravatar Tobias Schmidt <tobidt@gmail.com> 2018-06-19 20:50:08 +0200
committerGravatar Miek Gieben <miek@miek.nl> 2018-06-19 19:50:08 +0100
commit9c2dc7a1564a4cfc5c197d99c828364fc02bfbae (patch)
treec664c38be016ee3ab8eafceab02031e22a74d5ea /plugin.cfg
parentf78f30231df90da6184d5f811ecf9c06b0160c2b (diff)
downloadcoredns-9c2dc7a1564a4cfc5c197d99c828364fc02bfbae.tar.gz
coredns-9c2dc7a1564a4cfc5c197d99c828364fc02bfbae.tar.zst
coredns-9c2dc7a1564a4cfc5c197d99c828364fc02bfbae.zip
Ensure cache.ResponseWriter can be used asynchronously during prefetch (#1884)
The default dns.Response implementation of a dns.ResponseWriter will panic if RemoteAddr() is called after the connection to the client has been closed already. The current cache implementation doesn't create a new request+responsewriter during an asynchronous prefetch, but piggybacks on the request triggering the prefetch. This change copies the RemoteAddr first, so that it's safe to use it later during the actual prefetch request. A better implementation would be to completely decouple the prefetch request from the client triggering a request.
Diffstat (limited to 'plugin.cfg')
0 files changed, 0 insertions, 0 deletions