Skip to content

fix: a few defensive fixes to guard for exceptions#4828

Merged
davidzhao merged 2 commits intomainfrom
dz/guard-cb
Feb 16, 2026
Merged

fix: a few defensive fixes to guard for exceptions#4828
davidzhao merged 2 commits intomainfrom
dz/guard-cb

Conversation

@davidzhao
Copy link
Member

No description provided.

@davidzhao davidzhao requested a review from a team February 15, 2026 08:30
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Member

@chenghao-mou chenghao-mou left a comment

Choose a reason for hiding this comment

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

lgtm

await self._maybe_close_connection(conn)
except Exception as e:
logger.warning(f"error closing connection: {conn}", exc_info=e)
self._to_close.clear()
Copy link
Member

Choose a reason for hiding this comment

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

nit: do we still need this line after the while loop?

Copy link
Member Author

Choose a reason for hiding this comment

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

you are right, this isn't needed

@davidzhao davidzhao merged commit 0b48ce4 into main Feb 16, 2026
16 of 18 checks passed
@davidzhao davidzhao deleted the dz/guard-cb branch February 16, 2026 00:56
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.

2 participants