fix(s7commplus): remove misleading TLS hint - #851
Conversation
|
@bvanelli I requested your review because this change is directly based on the CreateObject behavior seen in the recent PLC traces: a non-zero return value is logged without falsely claiming that TLS is required, while usable session parsing continues. Could you check that the revised interpretation and sync/async behavior match what you observed? No additional byte capture is needed for this one. |
I assume you are talking about my change I did check the reference implementation, and those seems like fundamentally different things. Also, Is there a historical reason why this warning (or the flag |
|
The historical reason is #760: when the CreateObject return value was first surfaced, I inferred from that TLS failure that a non-zero value generally meant the session was being rejected and that TLS was the likely remedy. That was an incident-driven assumption, not a rule established by a capture or the reference implementation. The newer traces show that inference is too strong because usable session data can follow a non-zero value. You are also right that the reference connection path goes directly to TLS; our client additionally retains V1 non-TLS support. This PR only removes the TLS claim from CreateObject status logging. It does not change the separate signed ReturnValue check used during legitimation. |
Summary
Testing
uv run --no-sync pytest(1823 passed, 78 skipped)uv run --no-sync pre-commit run --all-filesProgresses #710.