Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #116 from Aaronontheweb/2.1.2-release-notes
Browse files Browse the repository at this point in the history
added 2.1.2 release notes; reformatted
  • Loading branch information
Aaronontheweb authored Jul 15, 2016
2 parents e20f3c9 + 2eef712 commit bc68d47
Show file tree
Hide file tree
Showing 354 changed files with 628 additions and 915 deletions.
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#### 2.1.2 Jul 14 2016
* Made DNS resolution configurable - can target IPV4 / IPV6 or any other `AddressFamily`.
* Caught `ObjectDisposedException`s that are thrown on shutdown so they are no longer logged.

#### 2.1.1 May 27 2016
* Fixed byte buffers - there were reporting that they were encoding as `LittleEndian`. Turns out they were using `BigEndian`. This has been fixed.
* Fixed issue with `AbstractDerivedByteBuf` where calling `Retain` would return the original underlying buffer and not the derived buffer.
Expand Down
3 changes: 1 addition & 2 deletions benchmark/Helios.Benchmark.DedicatedThreadFiber/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,4 @@ private static void CreateAndWaitForWorkItems(int numWorkItems, int numThreads)
}
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 1 addition & 2 deletions benchmark/Helios.Benchmark.SocketReliability/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,4 @@ public void RunBenchmark()
Console.WriteLine("Server Receives. Expected: {0} / Acutal: {1}", sends, ServerReceiveBuffer.Count);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 1 addition & 2 deletions benchmark/Helios.Benchmark.TCPThroughput/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ public void RunBenchmark(int messages)
WaitUntilNMessagesReceived(sends, TimeSpan.FromMinutes(3)); //set a really long timeout, just in case
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,4 @@ public override void ExceptionCaught(IChannelHandlerContext context, Exception e
_errorCount.Increment();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static TcpServerSocketChannelHorizontalScaleSpec()
private static readonly TimeSpan SaturationThreshold = TimeSpan.FromSeconds(15);

private IReadFinishedSignal _signal;

protected virtual IChannelHandler GetEncoder()
{
return new LengthFieldPrepender(4, false);
Expand Down Expand Up @@ -111,15 +111,15 @@ public void SetUp(BenchmarkContext context)
ClientBootstrap = new ClientBootstrap().Group(ClientGroup)
.Option(ChannelOption.TcpNodelay, true)
.Channel<TcpSocketChannel>().Handler(new ActionChannelInitializer<TcpSocketChannel>(
channel =>
{
channel.Pipeline.AddLast(GetEncoder())
.AddLast(GetDecoder())
.AddLast(new IntCodec(true))
.AddLast(new CounterHandlerInbound(_inboundThroughputCounter))
.AddLast(new CounterHandlerOutbound(_outboundThroughputCounter))
.AddLast(new ErrorCounterHandler(_errorCounter));
}));
channel =>
{
channel.Pipeline.AddLast(GetEncoder())
.AddLast(GetDecoder())
.AddLast(new IntCodec(true))
.AddLast(new CounterHandlerInbound(_inboundThroughputCounter))
.AddLast(new CounterHandlerOutbound(_outboundThroughputCounter))
.AddLast(new ErrorCounterHandler(_errorCounter));
}));

var token = _shutdownBenchmark.Token;
_eventLoop = () =>
Expand Down Expand Up @@ -151,12 +151,13 @@ public void SetUp(BenchmarkContext context)

// connect to server with 1 client initially
_clientChannels.Add(ClientBootstrap.ConnectAsync(_serverChannel.LocalAddress).Result);

}

private Action _eventLoop;

[PerfBenchmark(Description = "Measures how quickly and with how much GC overhead a TcpSocketChannel --> TcpServerSocketChannel connection can decode / encode realistic messages",
[PerfBenchmark(
Description =
"Measures how quickly and with how much GC overhead a TcpSocketChannel --> TcpServerSocketChannel connection can decode / encode realistic messages",
NumberOfIterations = IterationCount, RunMode = RunMode.Iterations)]
[CounterMeasurement(InboundThroughputCounterName)]
[CounterMeasurement(OutboundThroughputCounterName)]
Expand All @@ -182,11 +183,14 @@ public void TcpServerSocketChannel_horizontal_scale_stress_test(BenchmarkContext
Thread.Sleep(SleepInterval);
if (++runCount%10 == 0)
{
Console.WriteLine("{0} minutes remaining [{1} connections active].", (due - DateTime.Now).TotalMinutes, runCount);
Console.WriteLine("{0} minutes remaining [{1} connections active].",
(due - DateTime.Now).TotalMinutes, runCount);
var saturation = (DateTime.Now - lastMeasure);
if (saturation > SaturationThreshold)
{
Console.WriteLine("Took {0} to create 10 connections; exceeded pre-defined saturation threshold of {1}. Ending stress test.", saturation, SaturationThreshold);
Console.WriteLine(
"Took {0} to create 10 connections; exceeded pre-defined saturation threshold of {1}. Ending stress test.",
saturation, SaturationThreshold);
break;
}
lastMeasure = DateTime.Now;
Expand All @@ -207,13 +211,13 @@ public void TearDown()
}
Task.WaitAll(shutdownTasks.ToArray());
CloseChannel(_serverChannel);
Task.WaitAll(ClientGroup.ShutdownGracefullyAsync(), ServerGroup.ShutdownGracefullyAsync(), WorkerGroup.ShutdownGracefullyAsync());
Task.WaitAll(ClientGroup.ShutdownGracefullyAsync(), ServerGroup.ShutdownGracefullyAsync(),
WorkerGroup.ShutdownGracefullyAsync());
}

private static void CloseChannel(IChannel cc)
{
cc?.CloseAsync().Wait();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyTitle("Helios.HorizontalScaling.Performance")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
Expand All @@ -21,9 +22,11 @@
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.

[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM

[assembly: Guid("96870699-c5a6-411a-856e-3e0f6bf6f9f9")]

// Version information for an assembly consists of the following four values:
Expand All @@ -36,6 +39,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

<packages>
<package id="NBench" version="0.3.0" targetFramework="net461" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ public override void ChannelRead(IChannelHandlerContext context, object message)
context.FireChannelRead(message);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ public override Task WriteAsync(IChannelHandlerContext context, object message)
return context.WriteAsync(message);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,4 @@ public void CleanUp()
channel = null;
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ public void Signal()

public bool Finished { get; private set; }
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,4 @@ private static void CloseChannel(IChannel cc)
cc?.CloseAsync().Wait();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ public override void ChannelRead(IChannelHandlerContext context, object message)
context.FireChannelRead(message);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,4 @@ private static void CloseChannel(IChannel cc)
cc?.CloseAsync().Wait();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,4 @@ private static void CloseChannel(IChannel cc)
cc?.CloseAsync().Wait();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,4 @@ public void ConcurrentQueueWithResizing(BenchmarkContext context)
}
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ protected override IEventExecutor CreateExecutor()
return new SingleThreadEventExecutor("Foo", TimeSpan.FromMilliseconds(100));
}
}
}

}
3 changes: 1 addition & 2 deletions benchmark/Helios.Tests.Performance/Concurrency/FiberSpecs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,4 @@ protected override IFiber CreateFiber()
return FiberFactory.CreateFiber(FiberMode.Synchronous);
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ public void PerfCleanup()
CleanUp();
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ public override TransportType TransportType
get { return TransportType.Tcp; }
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ public override TransportType TransportType
get { return TransportType.Tcp; }
}
}
}

}
1 change: 1 addition & 0 deletions benchmark/Helios.Tests.Performance/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>

<packages>
<package id="NBench" version="0.3.0" targetFramework="net45" />
</packages>
3 changes: 1 addition & 2 deletions samples/Helios.RawSocket/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ private static void Main()
Application.Run(new SocketClient());
}
}
}

}
3 changes: 1 addition & 2 deletions samples/Helios.RawSocket/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 1 addition & 2 deletions samples/Helios.RawSocket/SocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,4 @@ private void ConnectionEstablishedCallback(INode remoteAddress, IConnection resp

#endregion
}
}

}
3 changes: 1 addition & 2 deletions samples/Helios.RawUdpSocket/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ private static void Main()
Application.Run(new SocketClient());
}
}
}

}
3 changes: 1 addition & 2 deletions samples/Helios.RawUdpSocket/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 1 addition & 2 deletions samples/Helios.RawUdpSocket/SocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,4 @@ private void btnSend_Click(object sender, EventArgs e)
}
}
}
}

}
3 changes: 1 addition & 2 deletions samples/Helios.Samples.TcpDownloadServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ private static void Main(string[] args)
{
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
3 changes: 1 addition & 2 deletions samples/Helios.Samples.TcpReactorServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,4 @@ public static void ReceiveData(NetworkData data, IConnection connection)
connection.Send(new NetworkData {Buffer = sendBytes, Length = sendBytes.Length, RemoteHost = node});
}
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: AssemblyFileVersion("1.0.0.0")]
Loading

0 comments on commit bc68d47

Please sign in to comment.