Skip to content

Conversation

@reltuk
Copy link
Contributor

@reltuk reltuk commented Oct 26, 2024

GMS server handler is supposed to cancel running queries if the connection which issued them goes away. It does this by checking the connection state out-of-band anytime the query is running and canceling theh query if the connection goes away. The connection checking code is platform-specific and currently only works on Linux.

In commit 538696b I introduced a bug where the connection checking code tries to inspect the socket state of an already closed file descriptor. This change fixes the behavior so that the file descriptor is left open until the necessary socket state is extracted.

GMS server handler is supposed to cancel running queries if the connection
which issued them goes away. It does this by checking the connection state
out-of-band anytime the query is running and canceling theh query if the
connection goes away. The connection checking code is platform-specific and
currently only works on Linux.

In commit 538696b I introduced a bug where the
connection checking code tries to inspect the socket state of an already closed
file descriptor. This change fixes the behavior so that the file descriptor is
left open until the necessary socket state is extracted.
Copy link
Contributor

@jycor jycor left a comment

Choose a reason for hiding this comment

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

LGTM

@jycor jycor merged commit 84d576a into main Oct 29, 2024
9 checks passed
@jycor jycor deleted the aaron/sockstate-closed-fd-fix branch October 29, 2024 22:10
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.

3 participants