Skip to content

Empty notification support when using "AcquireNotify" #1982

@denravonska

Description

@denravonska

We are using notifications to send Protobuf data to the clients. When populated fields are the same as the defaults then Protobuf will omit them to make the wire transfer smaller. If all fields are default then the payload is empty.

Looking here it seems like bleak treats that as EOF

        def on_data():
            try:
                data = os.read(fd, 1024)
                if not data:
                    raise RuntimeError("Unexpected EOF on notification file handle")

I'm not sure what the best cause of action is here. It truly is an EOF, but it's not an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend: BlueZIssues and PRs relating to the BlueZ backendbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions