Giter VIP home page Giter VIP logo

Comments (1)

xilun avatar xilun commented on July 20, 2024

8ca3301 improves the reliability a lot.

It actually mainly do retry in a loop (for at most 5 times) but it seems that failures might be more common when launching cygwin processes and/or launching outbash.exe from within VS IDE. Also it comes with exp increase of buffer size (to amortize worst case complexity) and a buffer size of 8 extra bytes (as in the SIZEOF_TCPTABLE_OWNER_PID macro of the SDK)

I did some other attempts with other or less changes, and they did not work. (It was: avoiding reentrancy of GetExtendedTcpTable() with a mutex at various levels, only 8 extra bytes for alloc, and only using exp increase of buffer size.)

When tested in standalone (launched without VS IDE) in a loop with four client caller threads each launching 200 non-cygwin processes as fast as possible, 9 seconds of relaxation, tasklist and taskkill, keeping the test running for dozens of hours, I was not able to get a single 0xc0000001 failure not mitigated by the retry loop in version 8ca3301 -- even when trying to also simultaneously load the system by other means.

So I ship this mitigation. I keep this issue open for now for ref; the error message in case the mitigation is not enough is: outbash: CConnection::run() exception: GetExtendedTcpTable: unknown error

from cbwin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.