Displaying 1 to 20 from 30 results

gracehttp - a simple and graceful HTTP server for Golang

  •    Go

This is a simple and graceful HTTP server for Golang.

xtcp - A TCP Server Framework with graceful shutdown, custom protocol.

  •    Go

A TCP Server Framework with graceful shutdown,custom protocol.Before create server and client, you need define the protocol format first.

write-pkg - Write a package.json file

  •    Javascript

Writes atomically and creates directories for you as needed. Sorts dependencies when writing. Preserves the indentation if the file already exists.Returns a Promise.




read-pkg - Read a package.json file

  •    Javascript

Returns a Promise for the parsed JSON.Returns the parsed JSON.

parse-json - Parse JSON with more helpful errors

  •    Javascript

Prescribes how the value originally produced by parsing is transformed, before being returned. See JSON.parse docs for more.Filename displayed in the error message.

pkg-conf - Get namespaced config from the closest package.json

  •    Javascript

Having tool specific config in package.json reduces the amount of metafiles in your repo (there are usually a lot!) and makes the config obvious compared to hidden dotfiles like .eslintrc, which can end up causing confusion. XO, for example, uses the xo namespace in package.json, and ESLint uses eslintConfig. Many more tools supports this, like AVA, Babel, nyc, etc.It walks up parent directories until a package.json can be found, reads it, and returns the user specified namespace or an empty object if not found.


exit-hook - Run some code when the process exits

  •    Javascript

The process.on('exit') event doesn't catch all the ways a process can exit.Useful for cleaning up.

load-json-file - Read and parse a JSON file

  •    Javascript

Strips UTF-8 BOM, uses graceful-fs, and throws more helpful JSON errors.Returns a promise for the parsed JSON.

hapi-graceful-pm2 - hapi plugin to handle graceful pm2 reloads

  •    Javascript

This is a hapi plugin to handle true zero downtime reloads when issuing a pm2 reload command. When using this plugin and calling 'pm2 reload', the 'SIGINT' message will be intercepted and will wait for hapi to drain all connections before exiting the worker. This will ensure any in progress requests are completed before exiting. Whilst waiting, no new requests will be forwarded to the worker.

graceful - Graceful shutdown of Go 1.8+ servers using Server.Shutdown

  •    Go

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

seppuku - Allow your Node.js workers to die honourably

  •    Javascript

Seppuku (named after the highly ritual suicide ceremony of Japanese samurai) is a simple module that streamlines the process of gracefully shutting down worker processes in a Node.js cluster that serves web pages through restify or express. It can be triggered manually, in response to an abnormal condition (e.g.: an unhandled exception), or automatically after a configurable number of requests to keep memory creep at bay.

async_armor - Graceful drop-in replacement for asyncio.shield

  •    Python

Graceful drop-in replacement for asyncio.shield

graceful - A library for graceful restarts in Go.

  •    Go

A library for sharing descriptors in Go. Package graceful provides tools for sharing file descriptors between processes.

http-shutdown - Shutdown a Nodejs HTTP server gracefully by terminating the listening socket, then destroying all keep-alive idle sockets all while allowing in-flight requests to finish

  •    Javascript

Other solutions might just use server.close which only terminates the listening socket and waits for other sockets to close - which is incomplete since keep-alive sockets can still make requests. Or, they may use ref()/unref() to simply cause Nodejs to terminate if the sockets are idle - which doesn't help if you have other things to shutdown after the server shutsdown. http-shutdown is a complete solution. It uses idle indicators combined with an active socket list to safely, and gracefully, close all sockets. It does not use ref()/unref() but, instead, actively closes connections as they finish meaning that socket 'close' events still work correctly since the sockets are actually closing - you're not just unrefing and forgetting about them.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.