Only on Linux. On MacOS cancel is not supported for now and we do not have any problem with the current recv operation on a closed socket. Signed-off-by: Francis Bouvier <francis@lightpanda.io>