[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Savannah-hackers-public] fcgiwrap daemon failure and mitigation - a

From: Assaf Gordon
Subject: Re: [Savannah-hackers-public] fcgiwrap daemon failure and mitigation - added cgi 'ping' script
Date: Mon, 5 Jun 2017 22:31:56 -0400

Hi Bob and all,

> On Jun 5, 2017, at 20:27, Bob Proulx <address@hidden> wrote:
> Around 1am US EST (-0400) time the FastCGI interface which services
> man CGI services went offline.  This appears to have been due to a
> resource starvation problem on vcs0.  This left the daemon in a broken
> state for the entire night.  Various users reported the problem this
> morning.

As we discussed on IRC,

I've added a tiny CGI script to test fcgiwrap.

The script is here:

It is referenced in:

It can be used in two ways:
1. When used without any GET parameters, this script returns the server's
   local time and the load average:

        $ curl
        load avg: 0.35 0.47 0.43 1/219 26002
        localtime: Mon Jun  5 22:11:54 2017

2. When given an 'id=' parameters, returns the content of the parameter.
   This is useful for testing, to ensure nothing is cached anywhere.

        $ id=$(date +%s)_$$
        $ echo $id
        $ t=$(curl --silent$id)
        $ test "$id" = "$t" && echo fcgiwrap-ok || echo fcgiwrap-fail

    NOTE: The content of 'id' is sanitized, characters not matching '\w'
    are removed.

I'll send the test scripts soon.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]