Please catch net.errClosing to make testsuite less noisy

Bug #1408668 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
go-dbus
In Progress
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

Revision history for this message
Michael Vogt (mvo) wrote :
Revision history for this message
Michael Vogt (mvo) wrote :
John Lenton (chipaca)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.