Skip to content

Issue with first use of set_timeout of IOCB when updating from v0.16 to v0.18 #529

Description

@yujia21

Hello,
I'm updating dependencies for an application that receives requests from clients and then sends it on to a bacnet server using bacpypes.
The "send" in question looks like this:

        iocb = IOCB(bacnet_request)
        iocb.set_timeout(TIMEOUT)
        deferred(_app.request_io, iocb)
        iocb.wait()
        if iocb.ioResponse or iocb.ioError:
            return iocb

Prior to the dependency update we were at v0.16.1 and didn't face any issues. On updating to v0.17 onwards, the first "send" always fails with

raise RuntimeError("no task manager")

but subsequent sends work well.

I'm not familiar enough with bacpypes to know if it's linked to a change between the versions and what to change on our side, any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions