Set the no_delay option on example.
This commit is contained in:
parent
b749ace67f
commit
0b6a0ace73
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user