Fix #532. Don't log graphite connection EOF as an error

pull/535/head
John Shahid 2014-05-12 15:17:23 -04:00
parent 4a1f0becd3
commit 3984a1c4b5
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@
### Bugfixes
- [Issue #516](https://github.com/influxdb/influxdb/issues/516). Close WAL log/index files when they aren't being used
- [Issue #532](https://github.com/influxdb/influxdb/issues/532). Don't log graphite connection EOF as an error
## v0.6.2 [2014-05-09]

View File

@ -18,6 +18,7 @@ import (
. "common"
"configuration"
"coordinator"
"io"
"net"
"protocol"
"time"
@ -121,6 +122,10 @@ func (self *Server) handleClient(conn net.Conn) {
graphiteMetric := &GraphiteMetric{}
err := graphiteMetric.Read(reader)
if err != nil {
if io.EOF == err {
log.Debug("Client closed graphite connection")
return
}
log.Error(err)
return
}