Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

trans errClosing into io.EOF to fix this expected error.#46

Open
godblesshugh wants to merge 1 commit into
zentures:masterfrom
godblesshugh:PR
Open

trans errClosing into io.EOF to fix this expected error.#46
godblesshugh wants to merge 1 commit into
zentures:masterfrom
godblesshugh:PR

Conversation

@godblesshugh
Copy link
Copy Markdown

@godblesshugh godblesshugh commented Nov 7, 2016

this will work with sendrecv.go, func receiver:
_, err := this.in.ReadFrom(r) if err != nil { if err != io.EOF { glog.Errorf("(%s) error reading from connection: %v", this.cid(), err) } return }
avoid print error like this:
sendrecv.go:75/receiver] (1/surgemq1) error reading from connection: read tcp 127.0.0.1:49192->127.0.0.1:1883: use of closed network connection

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant