title: Boost.Beast rate limiting
body: <p>I am reading Boost.Beast documentation and I am trying to use rate limiting in my code:</p>
  
  <pre><code>  io_context context;
    tcp::resolver resolver(context);
    basic_stream&lt;tcp, executor, simple_rate_policy&gt; stream(context);
  
    stream.rate_policy().write_limit(1);
  
    stream.connect(resolver.resolve("www.example.com", "http"));
  
    string response;
  
    write(stream, buffer("GET /index.html HTTP/1.1\r\nHost: www.example.com\r\n\r\n"));
  
    read_until(stream, dynamic_buffer(response), "\r\n\r\n");
  
    cout &lt;&lt; response &lt;&lt; endl;
  
    context.run();
  </code></pre>
  
  <p>If I am correct, this sample code should cause very long writing via socket connected with endpoint <code>www.example.com:80</code>. But simple_rate_policy seems to work only for asyc reads and writes. Am I doing something wrong or is it purposeful behaviour?</p>