Skip to content

Commit

Permalink
Add comment to session resources
Browse files Browse the repository at this point in the history
  • Loading branch information
travisdowns committed Jul 14, 2022
1 parent eea0de5 commit 5f5c7c6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/v/kafka/server/connection_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,14 @@ class connection_context final
private:
net::server_probe& _probe;
};
// used to pass around some internal state

// Used to hold resources associated with a given request until
// the response has been send, as well as to track some statistics
// about the request.
//
// The resources in particular should be not be destroyed until
// the request is complete (e.g., all the information written to
// the socket so that no userspace buffers remain).
struct session_resources {
ss::lowres_clock::duration backpressure_delay;
ss::semaphore_units<> memlocks;
Expand Down

0 comments on commit 5f5c7c6

Please sign in to comment.