You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.
local http = require "resty.http"
local client = http:new()
client:set_timeout(3000)
local ok, err = client:connect("127.0.0.1", 9999)
if not ok then
ngx.say(err)
return
end
ngx.say("abc");
local res, err = client:request({path = "/requestedFile"})
ngx.say("def");
ngx.flush(true);
nginx writes "abc", but no "def" or similar (for testing purposes). It seems that client:request() throws an error or something similar that forces nginx to cancel the execution. Is there anything special by using 127.0.0.1/localhost? I also tried localhost instead of 127.0.0.1 but I always got "localhost could not be resolved (3: Host not found)".
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
my code is the following:
nginx writes "abc", but no "def" or similar (for testing purposes). It seems that client:request() throws an error or something similar that forces nginx to cancel the execution. Is there anything special by using 127.0.0.1/localhost? I also tried localhost instead of 127.0.0.1 but I always got "localhost could not be resolved (3: Host not found)".
The text was updated successfully, but these errors were encountered: