-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
out_forward: support 'unix_path' #4715
Conversation
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
88bd2a0
to
cfb10bf
Compare
Doc PR: fluent/fluent-bit-docs#689 |
Ping. |
static int io_net_write(struct flb_upstream_conn *conn, int unused_fd, | ||
const void* data, size_t len, size_t *out_len) | ||
{ | ||
return flb_io_net_write(conn, data, len, out_len); | ||
} | ||
|
||
static int io_net_read(struct flb_upstream_conn *conn, int unused_fd, | ||
void* buf, size_t len) | ||
{ | ||
return flb_io_net_read(conn, buf, len); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why create local wrappers for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is abstraction layer to hide network/socket API.
I think it exposes args too much since we need to set unused args (e.g. flb_upstream_conn
for unix socket)
It may need to define a new struct to hide args and it can be exposed utility function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this!
@PettitWesley Thank you for reviewing. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Fixes #2181
This patch is to add 'unix_path' to forward via unix socket.
Upstream
is ignored.Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
Documentation
Backporting
Configuration
fluent-bit -c server.conf
fluent-bit -c client.conf
server.conf:
client.conf:
Debug output
Valgrind output
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.