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

Function default_error

examples/proxy.c:290–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 struct io_uring_cqe *cqe);
289
290static int default_error(struct error_handler *err,
291 struct io_uring __attribute__((__unused__)) *ring,
292 struct io_uring_cqe *cqe)
293{
294 struct conn *c = cqe_to_conn(cqe);
295
296 fprintf(stderr, "%d: %s error %s\n", c->tid, err->name, strerror(-cqe->res));
297 fprintf(stderr, "fd=%d, bid=%d\n", cqe_to_fd(cqe), cqe_to_bid(cqe));
298 return 1;
299}
300
301/*
302 * Move error handling out of the normal handling path, cleanly separating

Callers 2

recv_errorFunction · 0.85
send_errorFunction · 0.85

Calls 3

cqe_to_connFunction · 0.85
cqe_to_fdFunction · 0.85
cqe_to_bidFunction · 0.85

Tested by

no test coverage detected