Giter Club home page Giter Club logo

Comments (6)

rofl0r avatar rofl0r commented on July 22, 2024

seems most likely related to thread stack size. the DNS resolver in musl 1.2.4 has some new code for TCP based DNS lookup, so maybe it requires more stack than previous versions.

try to change line 50 in socksrv.c from

#define THREAD_STACK_SIZE MAX(8*1024, PTHREAD_STACK_MIN)

to

#define THREAD_STACK_SIZE MAX(12*1024, PTHREAD_STACK_MIN)

from microsocks.

itsjfx avatar itsjfx commented on July 22, 2024

thanks for the quick response

12 didn't work but after incrementing it appears to start working at around 16

#define THREAD_STACK_SIZE MAX(16*1024, PTHREAD_STACK_MIN)

from microsocks.

rofl0r avatar rofl0r commented on July 22, 2024

cool. please notify me when you're reasonably sure that with 16kb there are no issues anymore (maybe test with some extremely long dns names).

from microsocks.

itsjfx avatar itsjfx commented on July 22, 2024

On 16kb
haven't been able to make it seg fault. even after successfully resolving hundreds of unique 253 character length domains at once with curl + parallel

from microsocks.

rofl0r avatar rofl0r commented on July 22, 2024

thanks, fixed in master.

from microsocks.

itsjfx avatar itsjfx commented on July 22, 2024

thank you !

from microsocks.

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.