Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/asio_client_session.cc b/src/asio_client_session.cc
index a5acffc..b3f7312 100644
--- a/src/asio_client_session.cc
+++ b/src/asio_client_session.cc
@@ -140,6 +140,13 @@ void session::read_timeout(const boost::posix_time::time_duration &t) {
impl_->read_timeout(t);
}
+SSL *session::tls_native_handle() {
+ if(session_tls_impl* i=dynamic_cast<session_tls_impl*>(impl_.get())) {
#!/usr/bin/perl
# usage
# call it without arguments: display status
# call it with arguments <worker-url> <0|1> to disable/un-disable the worker
# this is only some demo code. arument parsing is very rudimentary. no reasonable
# error handling etc. Lots of improvements required for production-readiness
# could be extended to set other parameters as well, like drain, ignore status,