GithubHelp home page GithubHelp logo

Comments (8)

dwilliamson avatar dwilliamson commented on August 22, 2024

Are the auto-generated thread names unique among those 8 threads? I can't see anything else that would mess this up.

from remotery.

dougbinks avatar dougbinks commented on August 22, 2024

That seems it. The issue is the 64bit version of Base64_Encode appears to have a problem. If I print the name and address we get the following, showing all the addresses come to the same name. I'll see if I can fix and submit a pull request.

TS name: zc3NTs3NM04=
TS address: 0x0000006FDB710E90
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71B8A0
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71BE70
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71BFD0
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71C290
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71BDC0
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71BF20
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71C080
TS name: zc3NTs3NM04=
TS address: 0x0000006FDB71C6B0

from remotery.

dougbinks avatar dougbinks commented on August 22, 2024

Quick Q: Would you prefer Unamed%d instead? Could be done with an atomically incremented thread count fairly easily (unless you already have a suitable thread number available).

from remotery.

dwilliamson avatar dwilliamson commented on August 22, 2024

Yes, anything would be better than Base64_Encode, as long as it doesn't introduce API calls that are hard to make cross-platform with C89 (e.g. snprintf).

from remotery.

dougbinks avatar dougbinks commented on August 22, 2024

I've added the simple fix for now (you'll laugh I hope), and will look into a better one.

from remotery.

dwilliamson avatar dwilliamson commented on August 22, 2024

I actually think the Base64_Encode function is horribly broken. Which would make things interesting for the WebSocket handshake...

from remotery.

dwilliamson avatar dwilliamson commented on August 22, 2024

Oh, and hang on... you do realise that the fix you've made actually makes the code do what the comment says it does!? I can be a numpty sometimes...

from remotery.

dwilliamson avatar dwilliamson commented on August 22, 2024

Found the regression: ad9c926#diff-3b5be79006d8af568f3844e9e5bf7d93L3568

from remotery.

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.