mirror of
https://github.com/coredns/coredns.git
synced 2025-11-13 23:42:40 -05:00
Adds the dnstap I/O routines and should fix some issues (#1083)
* adds the dnstap I/O thread and should fix a lot of mistakes * docs * -race test * oops * docs
This commit is contained in:
@@ -32,7 +32,7 @@ func (s *TCP) Write(frame []byte) (n int, err error) {
|
||||
// Flush the remaining frames.
|
||||
func (s *TCP) Flush() error {
|
||||
defer func() {
|
||||
s.frames = s.frames[0:]
|
||||
s.frames = s.frames[:0]
|
||||
}()
|
||||
c, err := net.DialTimeout("tcp", s.address, time.Second)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user