Skip to content

Gg/connection reset status check#21

Merged
dominikboehm merged 8 commits intomasterfrom
gg/connection_reset_status_check
Nov 25, 2025
Merged

Gg/connection reset status check#21
dominikboehm merged 8 commits intomasterfrom
gg/connection_reset_status_check

Conversation

@gerhardgruber
Copy link
Contributor

No description provided.

Some servers close the connection forcefully when asking for a queue status
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for handling forceful connection closures during LPR status checks and updates project dependencies. The main enhancement allows callers to optionally ignore abrupt server disconnections (connection reset errors), which can occur with some LPR implementations.

  • Added ignoreForcefulClose parameter to GetStatus function to handle servers that forcefully close connections
  • Updated Go version to 1.25 and golang.org/x/text to v0.31.0
  • Enhanced documentation with RFC link and improved function documentation

Reviewed changes

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

File Description
lpr_status.go Added ignoreForcefulClose parameter and logic to detect/ignore connection reset errors
lpr_status_test.go Updated existing test calls with new parameter and added test for connection reset scenario
go.mod Updated Go version to 1.25 and golang.org/x/text dependency to v0.31.0
README.md Added RFC 1179 link for LPR protocol reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI commented Nov 25, 2025

@gerhardgruber I've opened a new pull request, #22, to work on those changes. Once the pull request is ready, I'll request review from you.

gerhardgruber and others added 4 commits November 25, 2025 12:33
…on resets

Co-authored-by: gerhardgruber <1944892+gerhardgruber@users.noreply.github.com>
Co-authored-by: gerhardgruber <1944892+gerhardgruber@users.noreply.github.com>
@gerhardgruber
Copy link
Contributor Author

@copilot please re-review

Copy link
Contributor

Copilot AI commented Nov 25, 2025

@gerhardgruber I've opened a new pull request, #23, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

lpr_daemon.go Outdated
Comment on lines 392 to 393
traceFile.WriteString("-----\n")
traceFile.Write(command)
Copy link

Copilot AI Nov 25, 2025

Choose a reason for hiding this comment

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

Lines 392-393 write to traceFile without checking for errors, while earlier writes in the function do check. For consistency and to ensure trace file writes don't silently fail, these calls should also check and log errors like the writes at lines 371, 381, and 387.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dominikboehm dominikboehm merged commit a2d495f into master Nov 25, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants