Repository navigation
Conversation
A gateway can stop serving one TCP session while still accepting new ones: every request on the old socket then times out until the kernel gives up (tcp_retries2, ~16 min), or until the add-on is restarted. Count consecutive read timeouts on non-serial links that have a ModbusConnection, and disconnect once Sunsynk.dead_link_timeouts is reached (default 6, 0 disables); the next read opens a new connection. Any successful read resets the count. Serial behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
This seems very specific to the connection handling. Maybe this rather belongs in modbus connection? |
Contributor
Author
|
modbus-connection deliberately leaves this to the caller: its docs describe
exactly this case (a serial-to-network bridge that keeps the socket open
while nothing answers, which automatic reconnection cannot see) and
recommend that the integration count consecutive timeouts and call the
disconnect .
Le sam. 10 oct. 2026 à 15:57, Johann Kellerman ***@***.***> a
écrit :
… *kellerza* left a comment (kellerza/sunsynk#699)
<#699 (comment)>
This seems very specific to the connection handling. Maybe this rather
belongs in modbus connection?
—
Reply to this email directly, view it on GitHub
<#699?email_source=notifications&email_token=AYDJ6M3Q4N7MCPSNQBYB6HL5TI547A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMBZHAZDGNJQGE22M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6098235015>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYDJ6M6GDLEGWM7HIOLBPP35TI547AVCNFSNUABFKJSXA33TNF2G64TZHM2DAMZWGU3DAOJRHNEXG43VMU5TKNZWHAZDQNRZG442C5QC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A gateway can stop serving one TCP session while still accepting new ones: every request on the old socket then times out until the kernel gives up (tcp_retries2, ~16 min), or until the add-on is restarted.
Count consecutive read timeouts on non-serial links that have a ModbusConnection, and disconnect once Sunsynk.dead_link_timeouts is reached (default 6, 0 disables); the next read opens a new connection. Any successful read resets the count. Serial behaviour is unchanged.