Skip to content

Commit

Permalink
Mark socket connection messages with IDeadLetterSuppression (#5412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkatufus authored Dec 3, 2021
1 parent a920b07 commit 7ec9417
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/core/Akka/IO/Tcp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
//-----------------------------------------------------------------------

using System;
using System.Reflection;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using Akka.Actor;
using Akka.Configuration;
using Akka.Dispatch;
Expand Down Expand Up @@ -53,7 +50,8 @@ public override TcpExt CreateExtension(ExtendedActorSystem system)

#region internal connection messages

internal abstract class SocketCompleted : INoSerializationVerificationNeeded { }
internal abstract class SocketCompleted : INoSerializationVerificationNeeded, IDeadLetterSuppression
{ }

internal sealed class SocketSent : SocketCompleted
{
Expand Down
4 changes: 2 additions & 2 deletions src/core/Akka/IO/Udp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
//-----------------------------------------------------------------------

using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using Akka.Actor;
using Akka.Configuration;
using Akka.Event;
using Akka.IO.Buffers;

namespace Akka.IO
Expand All @@ -34,7 +34,7 @@ public class Udp : ExtensionIdProvider<UdpExt>
{
#region internal connection messages

internal abstract class SocketCompleted : INoSerializationVerificationNeeded
internal abstract class SocketCompleted : INoSerializationVerificationNeeded, IDeadLetterSuppression
{
public ByteString Data { get; }

Expand Down
4 changes: 2 additions & 2 deletions src/core/Akka/IO/UdpConnected.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
//-----------------------------------------------------------------------

using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.CompilerServices;
using Akka.Actor;
using Akka.Configuration;
using Akka.Event;
using Akka.IO.Buffers;

namespace Akka.IO
Expand Down Expand Up @@ -45,7 +45,7 @@ public class UdpConnected : ExtensionIdProvider<UdpConnectedExt>
// SocketAsyncEventArgs should never leave the ReceiveAsync() method and the OnComplete callback. It should
// be returned immediately to PreallocatedSocketEventAgrsPool so that the buffer can be safely pooled back.

internal abstract class SocketCompleted : INoSerializationVerificationNeeded
internal abstract class SocketCompleted : INoSerializationVerificationNeeded, IDeadLetterSuppression
{
public ByteString Data { get; }

Expand Down

0 comments on commit 7ec9417

Please sign in to comment.