libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

feat(modbus): use poll() for Linux instead of select()

Open fcntlcn opened this issue 3 years ago • 2 comments

The 1024 limitation of select() makes some problem these days. I think using poll() for *nix systems may be a better choice.

fcntlcn avatar Jan 01 '22 09:01 fcntlcn

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get yourself added.

cla-bot[bot] avatar Jan 01 '22 09:01 cla-bot[bot]

After a quick look, it seems the tv struct could be replaced by a single integer var (ms). Are you sure it's supported on other Unix systems (FreeBSD, MacOS, etc)?

stephane avatar Jul 29 '22 10:07 stephane