 This code is intended
        to show how <code class="computeroutput"><span class="identifier">tcp_stream</span></code> can
        be used to enable timeouts across unmodified stream algorithms which were
        not originally written to support timing out, and how a blocking algorithm
        may be written from asynchronous intermediate operations.
      </p>
<pre class="programlisting"><span class="comment">/** Request an HTTP resource from a TLS host and return it as a string, with a timeout.

    T