Skip to content

Commit

Permalink
Fix #532. Don't log graphite connection EOF as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid authored and pauldix committed May 27, 2014
1 parent 0a7da3f commit b3c2729
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
5 changes: 5 additions & 0 deletions src/api/graphite/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
. "common"
"configuration"
"coordinator"
"io"
"net"
"protocol"
"time"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b3c2729

Please sign in to comment.