[TLS] release openssl buffers as used (fixes #1265, fixes #1283, #881)
commit5ab7944d3439f8efcd20d177d94ccdccc760881d
authorGlenn Strauss <gstrauss@gluelogic.com>
Sat, 28 May 2016 20:58:59 +0000 (28 16:58 -0400)
committerGlenn Strauss <gstrauss@gluelogic.com>
Mon, 20 Jun 2016 03:34:15 +0000 (19 23:34 -0400)
tree129a745b52d4df97e5d1507e9a5676c80c514be0
parent53f550b290adcaa9d73a199655655837344bbc2c
[TLS] release openssl buffers as used (fixes #1265, fixes #1283, #881)

use SSL_MODE_RELEASE_BUFFERS (OpenSSL >= 1.0.0) to free buffers
as they are used, to potentially reduce memory footprint of
idle SSL connections

x-ref:
  "memory usage when ssl.engine used and large data uploaded through CGI"
  https://redmine.lighttpd.net/issues/881
  "SSL + file upload = lots of memory"
  https://redmine.lighttpd.net/issues/1265
  "Memory usage increases when proxy+ssl+large file"
  https://redmine.lighttpd.net/issues/1283
src/network.c