Skip to content

Commit 3700f60

Browse files
committed
upgraded SuperSocket
1 parent 699c2a3 commit 3700f60

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/SciSharp.MySQL.Replication/ReplicationClient.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,15 @@ private async ValueTask StartDumpBinlog(Stream stream, int serverId, string file
276276
/// <summary>
277277
/// Starts receiving log event packages from the server.
278278
/// </summary>
279-
public new void StartReceive()
279+
public void StartReceive()
280280
{
281-
base.StartReceive();
281+
_ = this.StartReceiveAsync().ContinueWith(task =>
282+
{
283+
if (task.IsFaulted)
284+
{
285+
Logger?.LogError(task.Exception, "Error receiving log event package.");
286+
}
287+
});
282288
}
283289

284290
/// <summary>

src/SciSharp.MySQL.Replication/SciSharp.MySQL.Replication.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
3+
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
44
<LangVersion>9.0</LangVersion>
55
</PropertyGroup>
66
<PropertyGroup>
@@ -19,6 +19,6 @@
1919
<ItemGroup>
2020
<PackageReference Include="MySql.Data" Version="8.4.0" />
2121
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
22-
<PackageReference Include="SuperSocket.Client" Version="2.0.0-beta.21" />
22+
<PackageReference Include="SuperSocket.Client" Version="2.0.0-beta.31" />
2323
</ItemGroup>
2424
</Project>

0 commit comments

Comments
 (0)