CoreWCF / CoreWCF/samples

NetTcp retransmissions

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
50
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Using a NetCore server as per https://github.com/CoreWCF/samples/tree/main/Scenarios/Getting-Started-with-CoreWCF/NetCoreServer and a Framework client as per https://github.com/CoreWCF/samples/tree/main/Scenarios/Getting-Started-with-CoreWCF/NetFrameworkClient both on the same windows 10 20H2 workstation. The server is configured as windows service:

var builder = Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(w => w.UseStartup());

builder.ConfigureWebHost(w => w.UseKestrel());
builder.ConfigureWebHost(w => w.UseNetTcp(rti.Port));

builder.UseWindowsService();

builder.Build().Run();

When first calling the server it takes about 5 seconds to get an answer. Subsequent request are answered in a few milliseconds. After some time without making a request this behavior repeats.

Wiresharking the first request gives the following:

![image](https://user-images.githubusercontent.com/35361416/185552130-83ec8b9c-91bf-47e8-a5d5-c99c94192506.png)

Obviously this is not a workable situation but I'm kinda lost here. What am I doing wrong?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.