From 0b6a0ace73d861f918f9d28012f7872c24d10f27 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Tue, 22 Mar 2011 10:24:15 +1100 Subject: [PATCH] Set the no_delay option on example. --- asio/include/asio/ssl/rfc2818_verification.hpp | 1 + asio/src/doc/reference.qbk | 1 + 2 files changed, 2 insertions(+) diff --git a/asio/include/asio/ssl/rfc2818_verification.hpp b/asio/include/asio/ssl/rfc2818_verification.hpp index a2ccaa99..dd918b47 100644 --- a/asio/include/asio/ssl/rfc2818_verification.hpp +++ b/asio/include/asio/ssl/rfc2818_verification.hpp @@ -51,6 +51,7 @@ namespace ssl { * tcp::resolver resolver(io_service); * tcp::resolver::query query("host.name", "https"); * asio::connect(sock.lowest_layer(), resolver.resolve(query)); + * sock.lowest_layer().set_option(tcp::no_delay(true)); * * // Perform SSL handshake and verify the remote host's certificate. * sock.set_verify_mode(ssl::verify_peer); diff --git a/asio/src/doc/reference.qbk b/asio/src/doc/reference.qbk index 5166eca2..c3af5b89 100644 --- a/asio/src/doc/reference.qbk +++ b/asio/src/doc/reference.qbk @@ -83525,6 +83525,7 @@ The following example shows how to synchronously open a secure connection to a g tcp::resolver resolver(io_service); tcp::resolver::query query("host.name", "https"); asio::connect(sock.lowest_layer(), resolver.resolve(query)); + sock.lowest_layer().set_option(tcp::no_delay(true)); // Perform SSL handshake and verify the remote host's certificate. sock.set_verify_mode(ssl::verify_peer);