MCPcopy Create free account
hub / github.com/axboe/liburing / close_cd

Function close_cd

examples/proxy.c:888–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static void close_cd(struct conn *c, struct conn_dir *cd)
889{
890 cd->pending_shutdown = 1;
891
892 if (cd->pending_send)
893 return;
894
895 if (!(c->flags & CONN_F_PENDING_SHUTDOWN)) {
896 gettimeofday(&c->end_time, NULL);
897 c->flags |= CONN_F_PENDING_SHUTDOWN | CONN_F_END_TIME;
898 }
899}
900
901/*
902 * We're done with this buffer, add it back to our pool so the kernel is

Callers 4

__handle_recvFunction · 0.85
handle_send_incFunction · 0.85
handle_send_ringFunction · 0.85
__handle_sendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected