cloudflare / cloudflare/raven-lua

http_send() blocks at connect when using ngx.socket

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
121
Forks
53
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.