[PATCH] Upstream: fix memory leak with resolved peers and ssl

Srebrenko Šehić ssehic at gmail.com
Tue Jul 26 19:37:25 UTC 2011


On Fri, Jul 22, 2011 at 4:07 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Upstream: fix memory leak with resolved peers and ssl.
>
> As round robin peers created with ngx_http_upstream_create_round_robin_peer()
> are allocated from request pool saved ssl sessions leaked on request
> destruction.  Since saving sessions is useless here anyway (each peer is only
> used once) - fix this by not saving sessions at all.

Is this only relevant for http -> https (where the backend protocol is
SSL) or is this bug triggered as soon as you have SSL towards the
backend?

Thanks,
Srebrenko



More information about the nginx-devel mailing list