Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Connection.IsConnected is not set to false when connection to dbus is lost #29

Open
steffen-kiess opened this issue Nov 12, 2013 · 0 comments

Comments

@steffen-kiess
Copy link
Contributor

Currently, when the connection to dbus is lost (e.g. because the dbus sever is killed), Connection.Iterate() will return without setting Connection.IsConnected to false. A program using dbus-sharp then will call DBus.Iterate() again, causing 100% CPU load without doing anything.

The problem is that Transport.ReadMessageReal() returns null when the read from the socket return 0, but Connection.Iterate()/Connection.HandleMessage() do not take any action then msg is null (they probably should terminate the 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

No branches or pull requests

1 participant