Hello!
On Mon, Aug 31, 2015 at 7:53 AM, estebanSannin wrote:
> I'm using openresty from short time...
> Why this code work well with "content_by_lua" and in external file with
> "content_by_lua_file" go every time in timeout?
>
> ----- START CODE -----
>
Are you using content_by_lua or content_by_lua_file. Your code snippet
should be okay if the former is used.
I've run your example on my side and it is not timed out:
location = /t2 {
resolver 8.8.8.8;
content_by_lua '
...
';
}
Accessing /t gives
###connected: 1
###ssl handshake: userdata
HTTP/1.1 400 Bad Request
Vary: X-Origin
Content-Type: application/json; charset=UTF-8
Date: Mon, 31 Aug 2015 04:23:45 GMT
Expires: Mon, 31 Aug 2015 04:23:45 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=1
Alt-Svc: quic=":443"; p="1"; ma=604800
Accept-Ranges: none
Vary: Origin,Accept-Encoding
Connection: close
{
"error_description": "Invalid Value"
}
Regards,
-agentzh