Skip to content

Call to asyncio.sleep in ModbusBaseClient.connect slows frequent connections #2667

Closed as not planned
@snorfalorpagus

Description

@snorfalorpagus

#2529 added a call to await asyncio.sleep(0.1) to the connect method of ModbusBaseClient. This is causing a significant increase in the time it takes to run the test suite for an application that creates a new server and client in each test (+1 second per 10 tests). Is there a reason for this line or was it left over from some debugging?

https://github.com/pymodbus-dev/pymodbus/pull/2529/files#diff-a3d2fee1960ff928b8c5a01044d31ce619ecc6073db11c3aac8734737a8afc0fR62

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions