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

Sleep a little while reconnecting. #77

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@karlp
Contributor

karlp commented Jul 30, 2012

As this code is called in a forever loop, it should try and be somewhat
polite to any other OS tasks. At present, with tcp connections to localhost,
and presumably rtu connections to a local serial port, this is a CPU hog if
the remote port is not listening.

Sleep a little while reconnecting.
As this code is called in a forever loop, it should try and be somewhat
polite to any other OS tasks.  At present, with tcp connections to localhost,
and presumably rtu connections to a local serial port, this is a CPU hog if
the remote port is not listening.
@stephane

This comment has been minimized.

Show comment
Hide comment
@stephane

stephane Nov 8, 2012

Owner

I'll test this...

Owner

stephane commented Nov 8, 2012

I'll test this...

@stephane stephane closed this in a06255b May 4, 2013

@karlp karlp deleted the karlp:cpu_hog_send_i79 branch May 5, 2013

mk8 added a commit to mk8/libmodbus that referenced this pull request Jan 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment