diff options
| author | 2021-08-17 12:06:22 +0100 | |
|---|---|---|
| committer | 2021-09-22 20:43:49 +0100 | |
| commit | 5bd0a93976f6818187e70a4446257d90a41c7ff1 (patch) | |
| tree | 8826675f4f5415a7f231cfcd5f8285daaf03a0cc /src/modules/m_haproxy.cpp | |
| parent | Add 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.cpp | 5 |
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. |
