Hi @Joseph Benken ,
I think I checked your code and found the problem.
The default value for ListenBacklog and MaxConnections is 10, as you can see from the screenshot. (I am testing in .NET Framework 4.8).
You can try the following code:
void ConfigureNetTcpBinding(NetTcpBinding binding, NetTcpBindingElement config) {
config.Name = binding.Name;
config.ListenBacklog = binding.ListenBacklog;
config.MaxConnections = binding.MaxConnections;
config.MaxBufferPoolSize = binding.MaxBufferPoolSize;
config.MaxBufferSize = binding.MaxBufferSize;
}
You can take a look at the description in the documentation:
ListenBacklog: Gets or sets a value that specifies the maximum number of channels that can wait to be accepted on the listener.
This example shows how to get the ListenBacklog value.
int listenBacklog = binding.ListenBacklog;
https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.configuration.nettcpbindingelement?view=netframework-4.8
https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.nettcpbinding.listenbacklog?view=netframework-4.8#examples
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.