Coder Social home page Coder Social logo

Comments (8)

martylamb avatar martylamb commented on July 27, 2024

Sounds like a great change - a patch is welcome! Thanks much.

from nailgun.

jimpurbrick avatar jimpurbrick commented on July 27, 2024

RFC commit here jimpurbrick@4f48129

Adds support for context.isClientRunning() by adding heartbeats and basic flow control to the protocol.

Needs testing and probably fixing on Windows and cleaning up (what indentation would you like me to use?).

from nailgun.

jimpurbrick avatar jimpurbrick commented on July 27, 2024

Any thoughts on the diff @martylamb? Would you or Pete Kirkham be able to do the windows port?

from nailgun.

jimpurbrick avatar jimpurbrick commented on July 27, 2024

A few things I've been thinking about: 1) it would be nice to have a way for nails to register a callback which is run when the client disconnects to avoid cases where they have to spin up a thread just to poll isClientRunning (I favour just passing in a Runnable, but we could use a listener) 2) the scheduler in the NGInputStream should probably be static and shared by all streams to avoid 1 extra thread per connection which is mostly asleep 3) we might need to make recv timeout as well as select to be safe 4) the windows port will probably have to use WaitForMultipleObjects so that it can be triggered by stdin or the nailgun socket or a timeout in a similar way to select.

from nailgun.

jimpurbrick avatar jimpurbrick commented on July 27, 2024

A new commit that addresses 1) and 2) jimpurbrick@23ddda7

Still need to wrangle windows support and would love some help with that.

from nailgun.

martylamb avatar martylamb commented on July 27, 2024

Hi Jim -

Just wanted to let you know that I've blocked off some time on Wednesday
night to take a look.

Thanks again!

  • Marty

On Mon, Sep 23, 2013 at 1:45 PM, Jim Purbrick [email protected]:

A new commit that addresses 1) and 2) jimpurbrick/nailgun@23ddda7jimpurbrick@23ddda7

Still need to wrangle windows support and would love some help with that.


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-24938572
.

from nailgun.

jimpurbrick avatar jimpurbrick commented on July 27, 2024

I've submitted a pull request (#15) that includes a couple of changes that fix win32 support and a race condition in the server that should be merged as those bugs are currently in master

from nailgun.

sbalabanov-zz avatar sbalabanov-zz commented on July 27, 2024

Closing all issues older than 6 months; please reopen if it is still relevant

from nailgun.

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.