Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetTcp retransmissions #20

Open
remcovhu opened this issue Aug 19, 2022 · 1 comment
Open

NetTcp retransmissions #20

remcovhu opened this issue Aug 19, 2022 · 1 comment

Comments

@remcovhu
Copy link

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

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

@remcovhu
Copy link
Author

This issue manifests itself also in the unmodified samplecode. Using Core server and Framework client. Http works like a charm, NetTcp is slow and causes numerous TCP retransmissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant