Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contention between Signal and MethodReply Messages #8

Open
bcwaldon opened this issue Sep 16, 2014 · 1 comment
Open

Contention between Signal and MethodReply Messages #8

bcwaldon opened this issue Sep 16, 2014 · 1 comment

Comments

@bcwaldon
Copy link
Contributor

The inWorker event loop [0] handles both Signal and MethodReply Messages. When handling a Signal, an attempt is made to send an object over a user-provided channel. Obviously if this channel is not ready to receive, the inWorker loop will be blocked from processing any more messages. This causes major problems when Methods are called by the user in response to receipt of a Signal object.

This has been addressed in go-systemd by using two independent dbus.Conn objects (and therefore independent inWorker event loops) [1].

[0]

dbus/conn.go

Line 239 in 8d5cd58

func (conn *Conn) inWorker() {

[1] coreos/go-systemd#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants