mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-10 14:02:43 +00:00
778ce4f297
After the previous changes to fix requests on blocking sockets to complete across multiple operations, an edge case exists where a request can be cancelled after it has partially completed. POSIX doesn't appear to dictate exactly how to handle this case, but in general I feel that aio_cancel() should arrange to cancel any request it can, but that any partially completed requests should return a partial completion rather than ECANCELED. To that end, fix the socket AIO cancellation routine to return a short read/write if a partially completed request is cancelled rather than ECANCELED. Sponsored by: Chelsio Communications |
||
---|---|---|
.. | ||
aio_kqueue_test.c | ||
aio_test.c | ||
lio_kqueue_test.c | ||
local.h | ||
Makefile | ||
Makefile.depend |