aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_haproxy.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-08-17 12:06:22 +0100
committerGravatar Sadie Powell2021-09-22 20:43:49 +0100
commit5bd0a93976f6818187e70a4446257d90a41c7ff1 (patch)
tree8826675f4f5415a7f231cfcd5f8285daaf03a0cc /src/modules/m_haproxy.cpp
parentAdd the channels/ignore-repeat priv to exempt opers from +E. (diff)
Add an API for checking if I/O hooks are ready or not.
Diffstat (limited to 'src/modules/m_haproxy.cpp')
-rw-r--r--src/modules/m_haproxy.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_haproxy.cpp b/src/modules/m_haproxy.cpp
index f7ef52213..ab3251031 100644
--- a/src/modules/m_haproxy.cpp
+++ b/src/modules/m_haproxy.cpp
@@ -384,6 +384,11 @@ class HAProxyHook : public IOHookMiddle
sock->AddIOHook(this);
}
+ bool IsHookReady() const override
+ {
+ return state == HPS_CONNECTED;
+ }
+
int OnStreamSocketWrite(StreamSocket* sock, StreamSocket::SendQueue& uppersendq) CXX11_OVERRIDE
{
// We don't need to implement this.