Git Product home page Git Product logo

Comments (8)

tylerstillwater avatar tylerstillwater commented on August 21, 2024

It is simply a case that has never been addressed. It makes sense to exit immediately if no connections are open, though.

from graceful.

tchap avatar tchap commented on August 21, 2024

Ah, right :-)

from graceful.

tchap avatar tchap commented on August 21, 2024

So, do you feel like implementing it or shall I try to dig into the code?

from graceful.

tylerstillwater avatar tylerstillwater commented on August 21, 2024

Interesting. This case is handled at https://github.com/tylerb/graceful/blob/master/graceful.go#L244. It should return immediately if no connections are present. Care to debug it?

from graceful.

tchap avatar tchap commented on August 21, 2024

Don't really have time right now, but I will take a look let's say tomorrow.

from graceful.

tchap avatar tchap commented on August 21, 2024

It's doing keepalive I guess.

$ make run
[negroni] Started GET /
[negroni] Completed 200 OK in 5.364411ms
[negroni] Started GET /bootstrap-3.3.4-dist/css/bootstrap.css
[negroni] Completed 200 OK in 290.399µs
[negroni] Started GET /bootstrap-3.3.4-dist/js/bootstrap.js
[negroni] Completed 200 OK in 178.651µs
[negroni] Started GET /js/jquery-2.1.4.js
[negroni] Completed 200 OK in 341.359µs
[negroni] Started GET /bootstrap-3.3.4-dist/css/bootstrap-theme.css
[negroni] Completed 200 OK in 177.584µs
[negroni] Started GET /bootstrap-3.3.4-dist/css/bootstrap-theme.css.map
[negroni] Completed 200 OK in 354.736µs
[negroni] Started GET /bootstrap-3.3.4-dist/css/bootstrap.css.map
[negroni] Completed 200 OK in 2.139425ms
[negroni] Started GET /favicon.ico
[negroni] Completed 0  in 20.705µs
^Clen(connections) = 6

from graceful.

tylerstillwater avatar tylerstillwater commented on August 21, 2024

That would do it. :)

from graceful.

tchap avatar tchap commented on August 21, 2024

🤦 :-)

from graceful.

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.