Please catch net.errClosing to make testsuite less noisy

Bug #1408668 reported by Michael Vogt on 2015-01-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
go-dbus
Undecided
John Lenton

Bug Description

When I run:
  $ go test
I get a bunch of warnings like:
2015/01/08 15:49:05 Failed to read message: read unix @/tmp/dbus-zHJNnoqO8z: use of closed network connection

The reason appears to be that the recieveLoop() is not stopped when Connection.Close() is called. One way to stop this log output is to catch the net.errClosing error. Attached is a patch that does that. Alternatively (probably better) the loop is stopped on Close().

Thanks,
 Michael

Related branches

Michael Vogt (mvo) wrote :
Michael Vogt (mvo) wrote :
John Lenton (chipaca) on 2015-01-26
Changed in go-dbus:
assignee: nobody → John Lenton (chipaca)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers