File: delay-api.lua

package info (click to toggle)
freeradius 3.2.8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,400 kB
  • sloc: ansic: 125,473; sh: 5,860; perl: 4,351; sql: 3,072; python: 1,559; makefile: 621; xml: 62; tcl: 35; sed: 23; ruby: 22
file content (6 lines) | stat: -rw-r--r-- 150 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
-- Simple API represending a slow response for testing timeouts

local t0 = os.clock()
while os.clock() - t0 <= 2 do end

ngx.say("Delayed response")