Coder Social home page Coder Social logo

php-hypernode's Introduction

Hypernode PHP module

This is a PHP module for some enhanced functionality.

Currently, it does only one thing: it won't process fastcgi requests when the client has already closed the connection.

Requests are queued by the Linux kernel and placed in a TCP backlog. Once an FPM worker becomes available, it gets the next queued request and starts processing, regardless of the state of the connection with the client.

This module checks if the client is still connected before processing the requests and skips it when the client is already gone.

The behavior can be controlled by the hypernode.kill_gone_requests setting. To disable the behavior for a specific directory, place a file called .user.ini in it with the following contents:

hypernode.kill_gone_requests = 0

BUILD INSTRUCTIONS

The buildsystem for this module uses debhelper scripts that are only available for Ubuntu 14.04 (trusty) and later. If you need to build this module for Ubuntu Precise, you need two additional dependencies: php5-dev-5.5-buildscripts and pkg-php-tools from Ubuntu 14.04. Both packages are available in the Hypernode Precise repository. You also need to have the same major version of php5-dev installed as this module will be used with.

You also need dh-php > 0.10, so download here: http://ftp.nl.debian.org/debian/pool/main/d/dh-php/dh-php_0.10_all.deb

Make sure you have a build environment set up for the target system.

CREATING A NEW VERSION

  1. VERSION=$(date "+%Y%m%d.%H%M%S")
  2. ln -s src/ $VERSION
  3. git-dch --debian-tag="%(version)s" --new-version=$VERSION --debian-branch master --release
  4. git commit -m "Update changelog for $VERSION release"
  5. git tag $VERSION
  6. git push && git push --tags
  7. git-buildpackage --git-pbuilder --git-dist=buster --git-arch=amd64 --git-debian-branch=master

Or for the fully automated version see ByteInternet/hypernode-buildscripts

MANUAL BUILD AND INSTALLATION INSTRUCTIONS

DYNAMIC MODULE

    phpize
    ./configure && make
    make install  (as root)

STATIC COMPILATION

Place sources in /path/to/php_sources/ext/hypernode.

    cd /path/to/php_sources
    autoconf
    ./configure --enable-hypernode

Now just build and install php.

php-hypernode's People

Contributors

vdloo avatar maartenkos avatar gertjanol avatar allardhoeve avatar

Watchers

 avatar

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.