Keepalive option without ngx_http_upstream_keepalive

Hi,

is it a bug or a feature that nginx didn’t warn if keepalive is enable
in upstream {} config, but without ngx_http_upstream_keepalive module
loaded ?

Regards,

Hello!

On Wed, May 23, 2012 at 10:21:29AM +0200, Greg wrote:

Hi,

is it a bug or a feature that nginx didn’t warn if keepalive is
enable in upstream {} config, but without
ngx_http_upstream_keepalive module loaded ?

If upstream keepalive module isn’t compiled in the following
config

upstream {
    server 127.0.0.1:8080;
    keepalive 5;
}

produces the following error during configuration parsing:

nginx: [emerg] unknown directive “keepalive” in …

Maxim D.