messages cleanup
This commit is contained in:
parent
4a14cabeeb
commit
909ef6bf69
@ -980,8 +980,9 @@ impl NetworkManager {
|
||||
if let Some(tsbehind) = tsbehind {
|
||||
if tsbehind.as_u64() != 0 && (ts > ets && ts.saturating_sub(ets) > tsbehind) {
|
||||
log_net!(debug
|
||||
"envelope time was too far in the past: {}ms ",
|
||||
timestamp_to_secs(ts.saturating_sub(ets).as_u64()) * 1000f64
|
||||
"Timestamp behind: {}ms ({})",
|
||||
timestamp_to_secs(ts.saturating_sub(ets).as_u64()) * 1000f64,
|
||||
connection_descriptor.remote()
|
||||
);
|
||||
return Ok(false);
|
||||
}
|
||||
@ -989,8 +990,9 @@ impl NetworkManager {
|
||||
if let Some(tsahead) = tsahead {
|
||||
if tsahead.as_u64() != 0 && (ts < ets && ets.saturating_sub(ts) > tsahead) {
|
||||
log_net!(debug
|
||||
"envelope time was too far in the future: {}ms",
|
||||
timestamp_to_secs(ets.saturating_sub(ts).as_u64()) * 1000f64
|
||||
"Timestamp ahead: {}ms ({})",
|
||||
timestamp_to_secs(ets.saturating_sub(ts).as_u64()) * 1000f64,
|
||||
connection_descriptor.remote()
|
||||
);
|
||||
return Ok(false);
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ impl RawTcpProtocolHandler {
|
||||
ps,
|
||||
));
|
||||
|
||||
log_net!(debug "TCP: on_accept_async from: {}", socket_addr);
|
||||
log_net!(debug "Connection accepted from: {} (TCP)", socket_addr);
|
||||
|
||||
Ok(Some(conn))
|
||||
}
|
||||
|
@ -212,7 +212,7 @@ impl WebsocketProtocolHandler {
|
||||
ws_stream,
|
||||
));
|
||||
|
||||
log_net!(debug "{}: on_accept_async from: {}", if self.arc.tls { "WSS" } else { "WS" }, socket_addr);
|
||||
log_net!(debug "Connection accepted from: {} ({})", socket_addr, if self.arc.tls { "WSS" } else { "WS" });
|
||||
|
||||
Ok(Some(conn))
|
||||
}
|
||||
|
@ -300,7 +300,11 @@ impl NetworkConnection {
|
||||
.then(|res| async {
|
||||
match res {
|
||||
Ok(v) => {
|
||||
|
||||
if v.is_no_connection() {
|
||||
let peer_address = protocol_connection.descriptor().remote();
|
||||
log_net!(debug "Connection closed from: {} ({})", peer_address.socket_address().to_socket_addr(), peer_address.protocol_type());
|
||||
return RecvLoopAction::Finish;
|
||||
}
|
||||
let mut message = network_result_value_or_log!(v => {
|
||||
return RecvLoopAction::Finish;
|
||||
});
|
||||
|
491
veilid-server/flamegraph.svg
Normal file
491
veilid-server/flamegraph.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 1.2 MiB |
BIN
veilid-server/perf.data
Normal file
BIN
veilid-server/perf.data
Normal file
Binary file not shown.
BIN
veilid-server/perf.data.old
Normal file
BIN
veilid-server/perf.data.old
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user