diff options
| author | 2026-04-03 14:43:13 +0100 | |
|---|---|---|
| committer | 2026-04-03 14:43:13 +0100 | |
| commit | ce774a0a3d9caa96e69daf0db26936c1aa02cd6d (patch) | |
| tree | 993bf3d6e5179ee016e679106b6bd48b701c9b57 /include | |
| parent | Remove the hook type field from IOHookProvider. (diff) | |
Move a function only used by ssl_openssl into that module.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/ssl.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 336148005..20fbe02c2 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -198,31 +198,6 @@ protected: /** The status of the TLS connection. */ Status status = STATUS_NONE; - /** Reduce elements in a send queue by appending later elements to the first element until there are no more - * elements to append or a desired length is reached - * @param sendq SendQ to work on - * @param targetsize Target size of the front element - */ - static void FlattenSendQueue(StreamSocket::SendQueue& sendq, size_t targetsize) - { - if ((sendq.size() <= 1) || (sendq.front().length() >= targetsize)) - return; - - // Avoid multiple repeated TLS encryption invocations - // This adds a single copy of the queue, but avoids - // much more overhead in terms of system calls invoked - // by an IOHook. - std::string tmp; - tmp.reserve(std::min(targetsize, sendq.bytes())+1); - do - { - tmp.append(sendq.front()); - sendq.pop_front(); - } - while (!sendq.empty() && tmp.length() < targetsize); - sendq.push_front(tmp); - } - public: static SSLIOHook* IsSSL(StreamSocket* sock) { |
