 requirements, they transparently support timeouts when used with
        <code class="computeroutput"><span class="identifier">tcp_stream</span></code>. This can be used
        to enable timeouts for stream wrappers that do not currently support timeouts.
      </p>
<p>
        The following code establishes an encrypted connection, writes an HTTP request,
        reads the HTTP response, and closes the connection gracefully. If these operations
        take longer than 30 seconds total, a timeout occurs.