Skip to content

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

Open
fcntlcn wants to merge 1 commit intostephane:masterfrom
fcntlcn:poll-in-linux
Open

feat(modbus): use poll() for Linux instead of select()#617
fcntlcn wants to merge 1 commit intostephane:masterfrom
fcntlcn:poll-in-linux

Conversation

@fcntlcn
Copy link

@fcntlcn fcntlcn commented Jan 1, 2022

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

@cla-bot
Copy link

cla-bot bot commented Jan 1, 2022

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.

@fcntlcn fcntlcn closed this Jan 3, 2022
@fcntlcn fcntlcn reopened this Jan 3, 2022
@fcntlcn fcntlcn closed this Jan 3, 2022
@fcntlcn fcntlcn reopened this Jan 3, 2022
@stephane stephane self-requested a review January 25, 2022 23:04
@stephane
Copy link
Owner

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)?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants