GithubHelp home page GithubHelp logo

Agoo crash and exit about agoo HOT 7 CLOSED

noraj avatar noraj commented on June 10, 2024
Agoo crash and exit

from agoo.

Comments (7)

noraj avatar noraj commented on June 10, 2024 1

Okay works from CLI. I read the change to understand how to do that on the lib and it seems to be using 0.

Agoo::Server.init(0, 'root', bind: 'http://localhost:4242')

But it looks it was already documented: https://rubydoc.info/gems/agoo/Agoo/Server#init-class_method

from agoo.

ohler55 avatar ohler55 commented on June 10, 2024 1

Release v2.15.8 includes the fix.

from agoo.

ohler55 avatar ohler55 commented on June 10, 2024

I'll get it fixed. Might take a week though.

from agoo.

ohler55 avatar ohler55 commented on June 10, 2024

Sorry for the delay. The "in-a-bind" branch has a partial fix. I'm still checking the premature exit cases now in a linux shell as they seem to behave as expected on macOS.

Be aware that attempting to bind to an address that is not configured for the machine will result in an error so 127.0.0.2:4242 should exit with an error. Also using both -b and -p will result in the server listening on two interfaces. Maybe that's what you want though.

from agoo.

noraj avatar noraj commented on June 10, 2024

Also using both -b and -p will result in the server listening on two interfaces. Maybe that's what you want though.

When using only -b it's still listening on 2 sockets:

➜ agoo -d /srv/http -b http://127.0.0.2:4242 -t 1 -w 1 -v

Agoo 2.15.7 is listening on port 6464. Path mappings are:
Agoo is only serving static files in '/srv/http'.
I 2023/09/27 20:00:04.696123993 INFO: Agoo 2.15.7 with pid 31789 is listening on http://:6464.
I 2023/09/27 20:00:04.696132013 INFO: Agoo 2.15.7 with pid 31789 is listening on http://127.0.0.2:4242.

So I was trying to use -p as well to at least use the same port. Shouldn't the default bind be disabled when -b is used?

from agoo.

noraj avatar noraj commented on June 10, 2024

Other than that, the issues seem fixed.

from agoo.

ohler55 avatar ohler55 commented on June 10, 2024

Updated to not bind to the default if -b is given.

from agoo.

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.