Skip to content

Switch to sending Sync instead of query for keepalive - #3512

Merged
roji merged 1 commit into
npgsql:mainfrom
roji:KeepaliveWithFailedTransaction
Feb 6, 2021
Merged

roji merged 1 commit into
npgsql:mainfrom
roji:KeepaliveWithFailedTransaction

Conversation

@roji

@roji roji commented Feb 6, 2021

Copy link
Copy Markdown
Member

Compatible with failed transaction state, seemer cleaner too.

Fixes #3511

Compatible with failed transaction state, seemer cleaner too.

Fixes npgsql#3511
@roji
roji requested a review from vonzshik February 6, 2021 19:21
Comment thread test/Npgsql.Tests/ConnectionTests.cs Resolved

@vonzshik vonzshik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I leave it at your discretion)

@roji
roji merged commit 40a8bc8 into npgsql:main Feb 6, 2021
@roji
roji deleted the KeepaliveWithFailedTransaction branch February 6, 2021 19:46
roji added a commit that referenced this pull request Feb 6, 2021
Compatible with failed transaction state, seemer cleaner too.

Fixes #3511

(cherry picked from commit 40a8bc8)
@roji

roji commented Feb 6, 2021

Copy link
Copy Markdown
Member Author

Backported to 5.0.4 via d04b432

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.

KeepAlive breaks the connection, if the ping is send during a broken transaction

2 participants