Description
Dear users of MacOs, @airscholar, @pims, @av-elier,
We would need your help on a Unix compatibility issue.
Sozu Http representation and parsers are undergoing a complete rewrite to use Kawa (a separate crate we write in parallel).
It has also been an opportunity to revamp the access logs and add metrics, like server and client RTT (Round Trip Time, similar to ping).
RTT is extracted from kernel-specific internal structs. The Unix version is stable, but we haven't had the opportunity to test the Mac version. Dear users of MacOs, would you be so kind and test out this feature?
You would have to check out on the htx branch and run the following test:
git pull
git checkout htx
cargo test -- rtt --nocapture
If all goes well it should print the internal struct as well as the RTT extracted:
Some (
TcpInfo {
tcpi_state: 0,
tcpi_snd_wscale: 0,
tcpi_rcv_wscale: 0,
__pad1: 0,
tcpi_options: 0,
tcpi_flags: 0,
tcpi_rto: 0,
tcpi_maxseg: 0,
tcpi_snd_ssthresh: 0,
tcpi_snd_cwnd: 0,
tcpi_snd_wnd: 0,
tcpi_snd_sbbytes: 0,
tcpi_rcv_wnd: 0,
tcpi_rttcur: 0,
tcpi_srtt: 1709,
tcpi_rttvar: 0,
tcpi_tfo: 0,
tcpi_txpackets: 0,
tcpi_txbytes: 0,
tcpi_txretransmitbytes: 0,
tcpi_rxpackets: 0,
tcpi_rxbytes: 0,
tcpi_rxoutoforderbytes: 0,
tcpi_txretransmitpackets: 0,
}
)
rtt: 17ms
We would like the output you get, whether or not it looks like the above.
We thank you a lot in advance.