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

use batch IO when send to syslog and statsd #425

Open
zh-jq opened this issue Dec 5, 2024 · 0 comments
Open

use batch IO when send to syslog and statsd #425

zh-jq opened this issue Dec 5, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@zh-jq
Copy link
Collaborator

zh-jq commented Dec 5, 2024

The IO code below:
syslog:

fn send_data(&self, data: String, backend: &mut SyslogBackend) -> io::Result<()> {

statsd:
self.io.send_msg(&self.buf)?;

should be updated to do batch IO send, we have done this for udpdump
async fn send_udp(&self, packets: &[Vec<u8>]) -> io::Result<()> {

@zh-jq zh-jq added the good first issue Good for newcomers label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant