Upstream always NULL

Maxim Dounin mdounin at mdounin.ru
Mon Dec 7 12:46:24 UTC 2015


Hello!

On Mon, Dec 07, 2015 at 12:43:25PM +0400, Tigran Bayburtsyan wrote:

> function ngx_http_upstream_create , always returning NGX_ERROR . using
> Debugger I saw that after this lines
> 
> u = ngx_pcalloc(r->pool, sizeof(ngx_http_upstream_t));
> 
>     if (u == NULL) {
> 
>         return NGX_ERROR;
> 
>     }
> 
>  
> 
> ngx_ pcalloc always returning null. 
> 
> Is there anybody know this issue ?

You are doing something wrong in your code.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list