diff --git a/src/event/net/BufferedSocket.hxx b/src/event/net/BufferedSocket.hxx index efee82a8b..cd34fee33 100644 --- a/src/event/net/BufferedSocket.hxx +++ b/src/event/net/BufferedSocket.hxx @@ -623,6 +623,16 @@ public: return base.IsReadyForWriting(); } + [[gnu::pure]] + bool IsReadPending() const noexcept { + return base.IsReadPending() || defer_read.IsPending(); + } + + [[gnu::pure]] + bool IsWritePending() const noexcept { + return base.IsWritePending() || defer_write.IsPending(); + } + /** * Defer a call to Read(). */