Closed lukasz-pyrzyk closed 7 years ago
This issue generate huge overhead on recreating sockets
public SocketCommunicationService(IPEndPoint host) : this(host, () => new XGainSocket(AddressFamily.InterNetwork)) { } internal SocketCommunicationService(IPEndPoint host, Func<ISocket> newSocketFunc) { _host = host; _newSocketFunc = newSocketFunc; }
public async Task<byte[]> SendToServerAsync(Request request) { ISocket socket = _newSocketFunc(); [... }
Nope, will be replaced with https://github.com/davidfowl/Channels
This issue generate huge overhead on recreating sockets