Shaolinq icon indicating copy to clipboard operation
Shaolinq copied to clipboard

Doesn't seem to work with new version of ngpsql

Open almostEric opened this issue 5 years ago • 3 comments

ngpsql is now on version 4.1.1 and Shaolinq gets an error with ConnectionIdleTimeout during initialization.

almostEric avatar Oct 03 '19 12:10 almostEric

I've just tried a test case and the error I see is:

System.ArgumentException : Connection can't have ConnectionIdleLifetime 00:00:03 under ConnectionPruningInterval 00:00:10

Assuming this is the same issue you're referring to, setting ConnectionIdleLifetime on the connection properties to at least 10 (the ConnectionPruningInterval value) works around the issue.

There does seem to be a related issue where ConnectionPruningInterval is not correctly applied from the configuration to the actual connection, which we can fix in a future release.

samcook avatar Oct 03 '19 12:10 samcook

this is indeed the issue I ran into. Thanks for the workaround

almostEric avatar Oct 03 '19 12:10 almostEric

@samcook I've merged the fix in, should we close this one?

asizikov avatar Apr 26 '21 14:04 asizikov