Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http_send() blocks at connect when using ngx.socket #14

Open
RealHacker opened this issue Jun 24, 2016 · 0 comments
Open

http_send() blocks at connect when using ngx.socket #14

RealHacker opened this issue Jun 24, 2016 · 0 comments

Comments

@RealHacker
Copy link

When I test DSN with lua command line, I can successfully send message to Sentry server. But when running in open-resty, I cannot send any message to Sentry. Adding logs to raven.lua, I found the code always blocks when calling sock:connect:

ngx.log(ngx.ERR, "after tcp, before connect", self.host, self.port)
   ok, err = sock:connect(self.host, self.port)
   if not ok then
      return nil, err
   end
ngx.log(ngx.ERR,` "after connect, before send")

The second log never gots printed.

What could be wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant