stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.4k stars 1.73k forks source link

error_recovery_link is a CPU hog when connection is to localhost #76

Closed karlp closed 10 years ago

karlp commented 12 years ago

The close/reconnect loop in send_msg is a hard CPU hog when the connection is made to localhost. When the connection is remote, the socket timeouts are sufficient to not CPU hog, but this isn't enough for localhost connections.

karlp commented 10 years ago

Closed via https://github.com/stephane/libmodbus/pull/77