Repository navigation
Conversation
|
The remaining OpenSSL CI failure appears to match the previously reported ML-KEM/Ed25519 handshake flake. The build and the new SCP regression pass; one existing read test fails during hostkey signature verification, before authentication. Could you rerun that job on |
|
|
||
| libssh2_exit(); | ||
| return rc; | ||
| } |
There was a problem hiding this comment.
Can this test be compressed into less amount of code?
There was a problem hiding this comment.
I've rebased onto the latest master and simplified the test from 337 to 272 lines in 14ac6580, keeping the four cases and their checks. All 94 CI checks passed. Thanks for the review.
If you rebase on master, the test will run within this PR. |
Return control when SCP channel cleanup would block and resume it on the next call. Preserve the original error and its ownership until cleanup finishes, including releasing a saved message during session teardown. Add bounded standalone coverage for receive/send cleanup and saved-error lifetime without requiring a network or a specific crypto backend. Co-Authored-By: OpenAI Codex <[email protected]>
Cast each selected enum value to unsigned int so the diagnostic keeps the correct printf argument type and passes readability-redundant-casting. This resolves the clang-tidy failures in the SCP cleanup regression test. Co-Authored-By: OpenAI Codex <[email protected]>
Share cleanup-aware checks and fixture setup, use the existing integer encoder and default allocator, and report the failed condition and case. Preserve receive/send EAGAIN counts, original errors, channel cleanup, and owned-error restoration and teardown checks.
a75804b to
14ac658
Compare
|
Hi, just following up on this PR. Is there anything else you'd like me to adjust before it can move forward? Thanks for your time and review. |
vszakats
left a comment
There was a problem hiding this comment.
Two small nits to fix while assessing this.
| return 1; | ||
|
|
||
| CHECK(!queue_channel_data(session, ctx.channel, error_payload, | ||
| sizeof(error_payload))); |
There was a problem hiding this comment.
| sizeof(error_payload))); | |
| sizeof(error_payload))); |
| #include <stdint.h> | ||
| #include <stdio.h> | ||
| #include <stdlib.h> | ||
| #include <string.h> |
There was a problem hiding this comment.
Please remove headers already included via the first two internal headers.
I remain unconvinced this will remedy the linked issue. That issue |
SCP receive and send error cleanup currently keeps retrying
libssh2_channel_free()when it returnsLIBSSH2_ERROR_EAGAIN, including in non-blocking mode.Use the existing
ssh2_NB_state_error_closingstate to return control to the caller and resume cleanup on the next call. Preserve the original error code, message, and ownership flags until cleanup finishes. Release a saved heap-owned message if the session is freed before cleanup completes.Add a bounded, network-free standalone regression covering receive/send cleanup across calls, restoration of the original error, and saved-message lifetime through completion or session teardown. It uses the common SCP/channel code and does not require a particular crypto backend.
Local validation on upstream
bb8e0957plus this patch:checksrc: passes, including the new test.Follow-up to #2590 (comment). I have not established whether this explains the original test 621 CI hang. The curl runtime suite is provided by the CI workflow from master; it was not run locally.