RE: SSL_read reads 0 bytes after SSL_write/SSL_read/SSL_write
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?
David Schwartz wrote:[color=blue]
>> 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
> be closed after a reply is completed.
> OpenSSL Project [url]http://www.openssl.org[/url]
> User Support Mailing List [email]firstname.lastname@example.org[/email]
> Automated List Manager [email]email@example.com[/email]
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]firstname.lastname@example.org[/email]
Automated List Manager [email]email@example.com[/email]