Set the no_delay option on example.

This commit is contained in:
Christopher Kohlhoff 2011-03-22 10:24:15 +11:00
parent b749ace67f
commit 0b6a0ace73
2 changed files with 2 additions and 0 deletions

View File

@ -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);

View File

@ -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);