Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gretchenfrage committed Apr 15, 2024
1 parent 9b87ae7 commit f5fd635
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion quinn-proto/src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ impl Endpoint {
buf: &mut BytesMut,
server_config: Option<Arc<ServerConfig>>,
) -> Result<(ConnectionHandle, Connection), AcceptError> {
let remote_address_validated = incoming.remote_address_validated();
incoming.improper_drop_warner.dismiss();
let incoming_buffer = self.incoming_buffers.remove(incoming.incoming_idx);
self.incoming_count -= 1;
Expand Down Expand Up @@ -649,7 +650,7 @@ impl Endpoint {
tls,
Some(server_config),
transport_config,
incoming.retry_src_cid.is_some(),
remote_address_validated,
);
if dst_cid.len() != 0 {
self.index.insert_initial(dst_cid, ch);
Expand Down Expand Up @@ -960,6 +961,12 @@ impl fmt::Debug for Endpoint {
.field("connections", &self.connections)
.field("config", &self.config)
.field("server_config", &self.server_config)
// incoming_buffers too large
.field("incoming_count", &self.incoming_count)
.field(
"all_incoming_buffers_total_bytes",
&self.all_incoming_buffers_total_bytes,
)
.finish()
}
}
Expand Down

0 comments on commit f5fd635

Please sign in to comment.