Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use select to check if there is data available in the socket#310

Merged
dhoomakethu merged 1 commit intopymodbus-dev:devfrom
ccatterina:patch-socket-recv
Jun 23, 2018
Merged

Use select to check if there is data available in the socket#310
dhoomakethu merged 1 commit intopymodbus-dev:devfrom
ccatterina:patch-socket-recv

Conversation

@ccatterina
Copy link
Contributor

Skipping socket.error each time that there is no data to read
in the socket make the CPU usage raise up, to fix the issue use
select in order to know if there is data available.

Skipping socket.error each time that there is no data to read
in the socket make the CPU usage raise up, to fix the issue use
select in order to know if there is data available.
@dhoomakethu dhoomakethu merged commit 052ed36 into pymodbus-dev:dev Jun 23, 2018
@ccatterina
Copy link
Contributor Author

ccatterina commented Jan 22, 2019

@MarekLew Yep, sorry for the issue and thank u for your fix.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants