cloudflare / cloudflare/lua-resty-logger-socket

Datagram Unix socket doesn't work

Open
#36 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Raku
Stars
493
Forks
128
PR merge metrics
No merged PRs in 30d

Description

`_do_connect()` fails if `socket_type` is `"udp"` and `path` is specified instead of `host, port`

In this case, a UDP socket is created, and then its `:connect()` method is called, but there is no such method, so `attempt to call method 'connect' (a nil value)` error is thrown.

A simple fix is here: https://github.com/cloudflare/lua-resty-logger-socket/pull/35

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.