Skip to content
Commit 74e2e17e authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/net: avoid sending -ECONNABORTED on repeated connection requests

Since io_uring does nonblocking connect requests, if we do two repeated
ones without having a listener, the second will get -ECONNABORTED rather
than the expected -ECONNREFUSED. Treat -ECONNABORTED like a normal retry
condition if we're nonblocking, if we haven't already seen it.

Cc: stable@vger.kernel.org
Fixes: 3fb1bd68 ("io_uring/net: handle -EINPROGRESS correct for IORING_OP_CONNECT")
Link: https://github.com/axboe/liburing/issues/828


Reported-by: default avatarHui, Chunyang <sanqian.hcy@antgroup.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d2acf789
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment