Permalink
Browse files

delete Handler.flush()

  • Loading branch information...
1 parent 0114c53 commit 13545b371aef27468f2d75a5289faf2100660bac @peter-leonov committed Apr 22, 2010
Showing with 2 additions and 29 deletions.
  1. +2 −24 js/Handler.js
  2. +0 −5 nginx.conf
View
@@ -128,9 +128,9 @@ self.Handler =
return Nginx.DONE
},
- flush: function (r)
+ timeoutCascade: function (r)
{
- var count = r.args === undefined ? 3 : +r.args, total = 0
+ var count = r.args ? +r.args : 3, total = 0
function walk ()
{
total++
@@ -157,28 +157,6 @@ self.Handler =
return Nginx.DONE
},
- timeoutCascade: function (r)
- {
- var count = r.args === undefined ? 3 : +r.args, total = 0
- function walk ()
- {
- total++
-
- if (count <= 0)
- throw "count <= 0"
- else if (count == 1)
- r.sendString("cascade done " + total + " times\n")
- else
- r.setTimer(walk, 500)
-
- count--
- }
-
- walk()
-
- return Nginx.DONE
- },
-
timeout: function (r)
{
r.blablalba = "args: " + unescape(r.args)
View
@@ -65,11 +65,6 @@ http
js 'Handler.hasBody';
}
- location = /flush
- {
- js 'Handler.flush';
- }
-
location = /timeout-late
{
js 'Handler.lateTimeout';

0 comments on commit 13545b3

Please sign in to comment.