Skip to content

[modbus] Make receive timeout configurable for TCP connections - #5805

Merged
kaikreuzer merged 2 commits into
openhab:mainfrom
t2000:modbusReadTimeout
Sep 1, 2026
Merged

[modbus] Make receive timeout configurable for TCP connections#5805
kaikreuzer merged 2 commits into
openhab:mainfrom
t2000:modbusReadTimeout

Conversation

@t2000

@t2000 t2000 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Closes #5804

Closes openhab#5804

Signed-off-by: Stefan Triller <github@stefantriller.de>
@t2000
t2000 requested a review from a team as a code owner August 27, 2026 15:43
@holgerfriedrich
holgerfriedrich requested a balanced review from Copilot August 27, 2026 15:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds configurable TCP receive timeouts to the Modbus transport.

Changes:

  • Adds receiveTimeoutMillis to endpoint pool configuration.
  • Applies the configured timeout to TCP connections.
  • Includes the setting in equality, hashing, and diagnostics.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ModbusSlaveConnectionFactoryImpl.java Applies receive timeout to TCP connections.
EndpointPoolConfiguration.java Defines and tracks receive-timeout configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ssalonen ssalonen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot suggested good ones

Approving this anyways, commenting on consistency with previous implementation, keeping defaults in one place

Signed-off-by: Stefan Triller <github@stefantriller.de>
@t2000

t2000 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Is there anything missing from my side?

@kaikreuzer kaikreuzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, all fine, thank you!

@kaikreuzer
kaikreuzer merged commit 9525574 into openhab:main Sep 1, 2026
5 checks passed
@kaikreuzer kaikreuzer added the enhancement An enhancement or new feature of the Core label Sep 1, 2026
@kaikreuzer kaikreuzer added this to the 5.3 milestone Sep 1, 2026
@t2000
t2000 deleted the modbusReadTimeout branch September 2, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature of the Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[modbus] Make receive timeout configurable for TCP connections

4 participants