RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write
Hi
Thanks for reply.
In fact, I'm not sure why apache closes connection even if I set KeepAlive
to On in httpd.conf.
If I send "HTTP/1.1" request
will it also close the socket after reply?
-Dima
David Schwartz wrote:[color=blue]
>
>[color=green]
>> Hello!
>>
>> I use openssl to work with apache server via https.
>> But I see a strange situation when the second and the third calls
>> to send()
>> in my test-case read 0 bytes from socket.
>> Can you provide here any help?[/color]
>
> Why is that surprising? That's exactly what I would expect to happen. When
> the connection has been normally closed, SSL_read returns zero. You
> specifically asked for HTTP/1.0 behavior, which calls for the connection
> to
> be closed after a reply is completed.
>
> DS
>
>
> ______________________________________________________________________
> OpenSSL Project [url]http://www.openssl.org[/url]
> User Support Mailing List [email]openssl-users@openssl.org[/email]
> Automated List Manager [email]majordomo@openssl.org[/email]
>
>[/color]
--
View this message in context: [url]http://www.nabble.com/SSL_read-reads-0-bytes-after-SSL_write-SSL_read-SSL_write-tp14797166p14801898.html[/url]
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project [url]http://www.openssl.org[/url]
User Support Mailing List [email]openssl-users@openssl.org[/email]
Automated List Manager [email]majordomo@openssl.org[/email]