- Do not close the filedescriptor inside Ssl::Bio::~Bio() destructor
The callers do conn->close()
- Fix the BIO_CTRL_DUP control command to return 0. This command
duplicates the current bio. It should be implemented if the SSL_dup
OpenSSL function used anywhere inside squid.
Ssl::Bio::~Bio()
{
debugs(83, 7, "Bio destructing, this=" << this << " FD " << fd_);
- // XXX: seems wrong: we do not own this fd and callers do conn->close()!
- comm_close(fd_);
}
int Ssl::Bio::write(const char *buf, int size, BIO *table)
}
return -1;
- case BIO_CTRL_DUP: // XXX: Should this really do what FLUSH does?
+ case BIO_CTRL_DUP:
+ // Should implemented if the SSL_dup openSSL API function
+ // used anywhere in squid.
+ return 0;
+
case BIO_CTRL_FLUSH:
if (table->init) {
Ssl::Bio *bio = static_cast<Ssl::Bio*>(table->ptr);