You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BeginTransaction is not async results in connection to be opened async. I'm not entirely sure but I assume BeginTransaction will result in a transaction to be started if not already running thus a connection to be opened. I'm getting FirstChangeExceptions on my NpgSql setup
System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10035): A non-blocking socket operation could not be completed immediately. 192.168.149.149:5433
In npgsql/npgsql#1183 it is mentioned this is because the connection is opened via .Open instead of .OpenAsync. I looked in the code and DriverConnectionProvider supports async but it seems it isn't used. Further analys shows that DriverBase doesn't have an async BeginTransaction.
I think an async BeginTransaction makes sense but maybe there is a workaround?
The text was updated successfully, but these errors were encountered:
BeginTransaction is not async results in connection to be opened async. I'm not entirely sure but I assume
BeginTransaction
will result in a transaction to be started if not already running thus a connection to be opened. I'm getting FirstChangeExceptions on my NpgSql setupIn npgsql/npgsql#1183 it is mentioned this is because the connection is opened via
.Open
instead of.OpenAsync
. I looked in the code andDriverConnectionProvider
supports async but it seems it isn't used. Further analys shows thatDriverBase
doesn't have an async BeginTransaction.I think an async BeginTransaction makes sense but maybe there is a workaround?
The text was updated successfully, but these errors were encountered: