In two terminals: * First terminal runs the morbo webserver with a timeout of 2 and a sleep of 3. I would expect it declare intactivity every time! * Second terminal runs wget --tries=5 ################################################################################ # First terminal ################################################################################ londo@peter:~/git/capmon/mojo> SLEEP=3 MY_INACTIVITY=2 MOJO_INACTIVITY_TIMEOUT=2 morbo lite.pl Server available at http://127.0.0.1:3000 [Mon Jan 16 17:29:51 2017] [debug] GET "/" [Mon Jan 16 17:29:51 2017] [debug] Routing to a callback [Mon Jan 16 17:29:51 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:29:51 2017] [debug] sleeping 3 [Mon Jan 16 17:29:54 2017] [debug] 200 OK (3.001306s, 0.333/s) [Mon Jan 16 17:29:54 2017] [debug] Inactivity timeout [Mon Jan 16 17:29:55 2017] [debug] GET "/" [Mon Jan 16 17:29:55 2017] [debug] Routing to a callback [Mon Jan 16 17:29:55 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:29:55 2017] [debug] sleeping 3 [Mon Jan 16 17:29:58 2017] [debug] 200 OK (3.000581s, 0.333/s) [Mon Jan 16 17:30:03 2017] [debug] GET "/" [Mon Jan 16 17:30:03 2017] [debug] Routing to a callback [Mon Jan 16 17:30:03 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:03 2017] [debug] sleeping 3 [Mon Jan 16 17:30:06 2017] [debug] 200 OK (3.000774s, 0.333/s) [Mon Jan 16 17:30:09 2017] [debug] GET "/" [Mon Jan 16 17:30:09 2017] [debug] Routing to a callback [Mon Jan 16 17:30:09 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:09 2017] [debug] sleeping 3 [Mon Jan 16 17:30:12 2017] [debug] 200 OK (3.000549s, 0.333/s) [Mon Jan 16 17:30:12 2017] [debug] Inactivity timeout [Mon Jan 16 17:30:13 2017] [debug] GET "/" [Mon Jan 16 17:30:13 2017] [debug] Routing to a callback [Mon Jan 16 17:30:13 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:13 2017] [debug] sleeping 3 [Mon Jan 16 17:30:16 2017] [debug] 200 OK (3.000612s, 0.333/s) [Mon Jan 16 17:30:16 2017] [debug] Inactivity timeout [Mon Jan 16 17:30:18 2017] [debug] GET "/" [Mon Jan 16 17:30:18 2017] [debug] Routing to a callback [Mon Jan 16 17:30:18 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:18 2017] [debug] sleeping 3 [Mon Jan 16 17:30:21 2017] [debug] 200 OK (3.000569s, 0.333/s) [Mon Jan 16 17:30:21 2017] [debug] Inactivity timeout [Mon Jan 16 17:30:24 2017] [debug] GET "/" [Mon Jan 16 17:30:24 2017] [debug] Routing to a callback [Mon Jan 16 17:30:24 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:24 2017] [debug] sleeping 3 [Mon Jan 16 17:30:27 2017] [debug] 200 OK (3.000596s, 0.333/s) [Mon Jan 16 17:30:27 2017] [debug] Inactivity timeout [Mon Jan 16 17:30:31 2017] [debug] GET "/" [Mon Jan 16 17:30:31 2017] [debug] Routing to a callback [Mon Jan 16 17:30:31 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:31 2017] [debug] sleeping 3 [Mon Jan 16 17:30:34 2017] [debug] 200 OK (3.000675s, 0.333/s) [Mon Jan 16 17:30:34 2017] [debug] Inactivity timeout [Mon Jan 16 17:30:37 2017] [debug] GET "/" [Mon Jan 16 17:30:37 2017] [debug] Routing to a callback [Mon Jan 16 17:30:37 2017] [debug] setting $c->inactivity_timeout(2) [Mon Jan 16 17:30:37 2017] [debug] sleeping 3 [Mon Jan 16 17:30:40 2017] [debug] 200 OK (3.000951s, 0.333/s) ################################################################################ # Second terminal ################################################################################ londo@peter:~/git/capmon/mojo> time wget -O /dev/null --tries=2 http://localhost:3000/ --2017-01-16 17:29:21-- http://localhost:3000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:29:25-- (try: 2) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... 200 OK Length: 11 [text/html] Saving to: ‘/dev/null’ /dev/null 100%[=====================>] 11 --.-KB/s in 0s 2017-01-16 17:29:28 (2.90 MB/s) - ‘/dev/null’ saved [11/11] real 0m7.013s user 0m0.000s sys 0m0.004s londo@peter:~/git/capmon/mojo> time wget -O /dev/null --tries=5 http://localhost:3000/ --2017-01-16 17:29:51-- http://localhost:3000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:29:55-- (try: 2) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... 200 OK Length: 11 [text/html] Saving to: ‘/dev/null’ /dev/null 100%[=====================>] 11 --.-KB/s in 0s 2017-01-16 17:29:58 (2.86 MB/s) - ‘/dev/null’ saved [11/11] real 0m7.013s user 0m0.004s sys 0m0.000s londo@peter:~/git/capmon/mojo> time wget -O /dev/null --tries=5 http://localhost:3000/ --2017-01-16 17:30:03-- http://localhost:3000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... 200 OK Length: 11 [text/html] Saving to: ‘/dev/null’ /dev/null 100%[=====================>] 11 --.-KB/s in 0s 2017-01-16 17:30:06 (2.15 MB/s) - ‘/dev/null’ saved [11/11] real 0m3.025s user 0m0.004s sys 0m0.000s londo@peter:~/git/capmon/mojo> time wget -O /dev/null --tries=5 http://localhost:3000/ --2017-01-16 17:30:09-- http://localhost:3000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:30:13-- (try: 2) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:30:18-- (try: 3) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:30:24-- (try: 4) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Retrying. --2017-01-16 17:30:31-- (try: 5) http://localhost:3000/ Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... No data received. Giving up. real 0m25.018s user 0m0.004s sys 0m0.004s londo@peter:~/git/capmon/mojo> time wget -O /dev/null --tries=5 http://localhost:3000/ --2017-01-16 17:30:37-- http://localhost:3000/ Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:3000... connected. HTTP request sent, awaiting response... 200 OK Length: 11 [text/html] Saving to: ‘/dev/null’ /dev/null 100%[=====================>] 11 --.-KB/s in 0s 2017-01-16 17:30:40 (2.69 MB/s) - ‘/dev/null’ saved [11/11] real 0m3.007s user 0m0.004s sys 0m0.000s