Skip to content

use batch IO when send to syslog and statsd #425

Open
@zh-jq

Description

@zh-jq

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<()> {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions