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

Matching rules are never removed from the bus #26

Open
heftig opened this issue Apr 7, 2015 · 7 comments
Open

Matching rules are never removed from the bus #26

heftig opened this issue Apr 7, 2015 · 7 comments

Comments

@heftig
Copy link

heftig commented Apr 7, 2015

DBusClientConnection's delMatch should remove rules from the bus by calling RemoveMatch with the original rule string. Otherwise, they can keep accumulating until the bus refuses to add any more rules.

@cocagne
Copy link
Owner

cocagne commented Apr 7, 2015

Fixed in 1.0.11. My testing on this was somewhat limited though, let me know if I botched the fix.

@heftig
Copy link
Author

heftig commented Apr 8, 2015

Where is 1.0.11? The newest release in this repository is 1.0.6.

@heftig
Copy link
Author

heftig commented Apr 8, 2015

Ah, in pypi. Would be nice if this repository were actually up-to-date with the packages. I would have actually noticed any new releases. I can't use the package because I need to maintain a local fork.

Anyway, my first attempt at implementing this ended up basically identical to your code. I've got a smarter version now which consolidates matches that construct the same rule string. The new callback gets added to the router, but another match is not added to the bus. I'll send a pull request once I've tested the code.

@heftig
Copy link
Author

heftig commented Apr 8, 2015

That is, I could create a pull request if this repo were at least at version 1.0.11 for me to merge into.

@cocagne
Copy link
Owner

cocagne commented Apr 8, 2015

If you have a better implementation, please do send a pull request. The
repository was indeed behind the released version but I'm not entirely sure
why. I switched machines a few months ago and I may have screwed up my
remotes when doing so. It should be fully up to date now though, thanks for
pointing it out.

On Wed, Apr 8, 2015 at 3:01 AM, Jan Alexander Steffens <
[email protected]> wrote:

That is, I could create a pull request if this repo were at least at
version 1.0.11 for me to merge into.


Reply to this email directly or view it on GitHub
#26 (comment).

@cocagne
Copy link
Owner

cocagne commented Apr 17, 2015

Heftig,

Do you have an eta for making a pull request that includes your changes? I'd like to cut a new txdbus release soon to include an endian fix that was recently submitted but I'd also like to include your changes if possible.

Tom

@heftig
Copy link
Author

heftig commented Apr 17, 2015

Sorry, I ran into a bit of trouble with ensuring that there is ever only one in-flight request for any match, so this is on the backburner now.

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