diff options
author | Fabiano Rosas <farosas@suse.de> | 2025-02-07 10:48:21 -0300 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-02-14 15:19:04 -0300 |
commit | 322d873b634dc515220f154e29626a33f528bbfb (patch) | |
tree | e595ae3201b149df2c66b8f0535ab0a22909b0d9 /include/io/channel.h | |
parent | a25b013019672ab456ef8b51912eadcdda418b73 (diff) | |
download | qemu-322d873b634dc515220f154e29626a33f528bbfb.zip qemu-322d873b634dc515220f154e29626a33f528bbfb.tar.gz qemu-322d873b634dc515220f154e29626a33f528bbfb.tar.bz2 |
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>
Diffstat (limited to 'include/io/channel.h')
-rw-r--r-- | include/io/channel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/io/channel.h b/include/io/channel.h index 58940ee..62b6571 100644 --- a/include/io/channel.h +++ b/include/io/channel.h @@ -35,6 +35,7 @@ OBJECT_DECLARE_TYPE(QIOChannel, QIOChannelClass, #define QIO_CHANNEL_WRITE_FLAG_ZERO_COPY 0x1 #define QIO_CHANNEL_READ_FLAG_MSG_PEEK 0x1 +#define QIO_CHANNEL_READ_FLAG_RELAXED_EOF 0x2 typedef enum QIOChannelFeature QIOChannelFeature; |