netty / netty-incubator-transport-io_uring

Apache License 2.0
193 stars 38 forks source link

Allow to cancel connect() operations when using io_uring #237

Closed normanmaurer closed 8 months ago

normanmaurer commented 8 months ago

Motivation:

Whe using io_uring we can in fact cancel a connect() operation by just closing the underyling fd.

Modifications:

Don't mark the promise as uncancellable before issue the non-blocking connect() call Add comment to explain code

Result:

Related to https://github.com/netty/netty/issues/13843 and https://github.com/netty/netty/pull/13849