io: Add a read flag for relaxed EOF
authorFabiano Rosas <farosas@suse.de>
Fri, 7 Feb 2025 13:48:21 +0000 (10:48 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Feb 2025 18:19:04 +0000 (15:19 -0300)
commit322d873b634dc515220f154e29626a33f528bbfb
treee595ae3201b149df2c66b8f0535ab0a22909b0d9
parenta25b013019672ab456ef8b51912eadcdda418b73
io: Add a read flag for relaxed EOF

Add a read flag that can inform a channel that it's ok to receive an
EOF at any moment. Channels that have some form of strict EOF
tracking, such as TLS session termination, may choose to ignore EOF
errors with the use of this flag.

This is being added for compatibility with older migration streams
that do not include a TLS termination step.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
include/io/channel.h
io/channel-tls.c