Skip to content

sws: log the exact closing reason better, to help debugging tests - #22431

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/sws-close-logging
Closed

sws: log the exact closing reason better, to help debugging tests#22431
bagder wants to merge 1 commit into
masterfrom
bagder/sws-close-logging

Conversation

@bagder

@bagder bagder commented Jul 29, 2026

Copy link
Copy Markdown
Member

No description provided.

@bagder
bagder requested a review from Copilot July 29, 2026 14:40
@bagder bagder added the tests label Jul 29, 2026
@bagder bagder changed the title sws: log the exact closing reason better, to help debugging testsa sws: log the exact closing reason better, to help debugging tests Jul 29, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Ready to approve

The change is a low-risk logging-only refinement in test server code and preserves the existing close behavior while adding clearer diagnostics.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR refines how the sws test server reports why it is closing a connection, improving the usefulness of test logs when diagnosing failures.

Changes:

  • Splits a combined “close connection” condition into distinct branches.
  • Adds more specific logmsg() messages for each close reason (response marker, empty response, or <servercmd> close).
File summaries
File Description
tests/server/sws.c Improves connection-close logging by distinguishing the specific trigger that caused persistent = FALSE.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@bagder
bagder marked this pull request as ready for review July 29, 2026 14:43
@bagder bagder closed this in 57cae40 Jul 29, 2026
@bagder
bagder deleted the bagder/sws-close-logging branch July 29, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants