ostname), &amp;written)) {
    if (handle_io_failure(ssl, 0) == 1)
        continue; /* Retry */
    printf(&quot;Failed to write hostname in HTTP request\n&quot;);
    goto end; /* Cannot retry: error */
}
while (!SSL_write_ex(ssl, request_end, strlen(request_end), &amp;written)) {
    if (handle_io_failure(ssl, 0) == 1)
        continue; /* Retry */
    printf(&quot;Failed to write end of HTTP request\n&quot;);
    goto end; /* Cannot retry: error */
}</code></pre>

<p>On a write we do not expect to see a