Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Low performance (in 100 times more) Connect/Bind methods in Docker on Win11 with Linux containers #216

Closed
P9avel opened this issue Oct 16, 2022 · 0 comments

Comments

@P9avel
Copy link

P9avel commented Oct 16, 2022

Hi, i am used simple code

[HttpGet]
public string Get()
{
Stopwatch stopWatch = new Stopwatch();

        using (var con = new LdapConnection())
        {
            stopWatch.Start();
            con.Connect("www.zflexldap.com", 389);
            stopWatch.Stop();
        }
        
        TimeSpan ts = stopWatch.Elapsed;
        return ts.ToString();
    }

When i running from VS 2022 i am get 0,2 sec. When running docker file from VS, i am ge 12sec and more (sometime in 100 times more). Please look my image. Can you to help me? What need to do in my case for reducing execution time?

image

PS. VS 2022 17.3.4, Docker Desktop 4.12.0 (85629), Windows 11, project in atachments
TestLDAP.zip

Repository owner locked and limited conversation to collaborators Nov 12, 2022
@dsbenghe dsbenghe converted this issue into discussion #218 Nov 12, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant