diff --git a/io_uring_echo_server.c b/io_uring_echo_server.c index 775fc2b..9759511 100644 --- a/io_uring_echo_server.c +++ b/io_uring_echo_server.c @@ -149,8 +149,6 @@ int main(int argc, char *argv[]) { int bytes_read = cqe->res; int bid = cqe->flags >> 16; if (cqe->res <= 0) { - // read failed, re-add the buffer - add_provide_buf(&ring, bid, group_id); // connection closed or error close(conn_i.fd); } else {