Re: Unit 1.2 release

2018-06-08 Thread Ralph Seichter
On 07.06.18 18:07, Valentin V. Bartenev wrote:

> Feature: configuration of environment variables for application
> processes.

My thanks to the Unit team, this new feature is going to save me a lot
of headaches.

-Ralph
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: increase video image size

2018-06-08 Thread Roman Arutyunyan
Hi,

On Fri, Jun 08, 2018 at 05:15:57AM -0400, neuronetv wrote:
> Roman Arutyunyan Wrote:
> ---
> 
> > Something like this should work:
> > 
> > application /src {
> > live on;
> > exec_push ffmpeg -i rtmp://localhost/src/$name -c:a copy -c:v
> > libx264
> >  -s 640x480 -f flv rtmp://localhost/dst/$name;
> > }
> > 
> > application /dst {
> > # proceed here
> > }
> > 
> 
> thanks, does this go in my nginx.conf file?

Yes, it does.

> Posted at Nginx Forum: 
> https://forum.nginx.org/read.php?2,280079,280097#msg-280097
> 
> ___
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

-- 
Roman Arutyunyan
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Performance of h2 is better than h2c

2018-06-08 Thread prabhat
yes. Both are running in different machines. OS used is ubuntu 14.04

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,280098,280100#msg-280100

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: Performance of h2 is better than h2c

2018-06-08 Thread Peter Booth
Is your client running n a different host than your server?

> On 8 Jun 2018, at 5:35 AM, prabhat  wrote:
> 
> I am taking performance data on nginx.
> The client I used is h2load
> 
> Request per second using h2 is much higher than h2c. But I think it should
> not be as h2 is having the overhead of ssl.
> I have used the command 
> ./h2load https://xx.xx.xx.xx:4070 -n50 -c1000 -t50   --- h2
> ./h2load http://xx.xx.xx.xx:4090 -n50 -c1000 -t50   --- h2c
> 
> and at the server side config is 
> http2_max_concurrent_streams 60;-
> http2_max_requests 60;
> http2_streams_index_size 524288;
> 
> The h2c is getting 23008.09 req/sec and h2 96091.85 req/sec
> 
> The request is for default page provided with nginx instalation
> 
> Posted at Nginx Forum: 
> https://forum.nginx.org/read.php?2,280098,280098#msg-280098
> 
> ___
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Performance of h2 is better than h2c

2018-06-08 Thread prabhat
I am taking performance data on nginx.
The client I used is h2load

Request per second using h2 is much higher than h2c. But I think it should
not be as h2 is having the overhead of ssl.
I have used the command 
./h2load https://xx.xx.xx.xx:4070 -n50 -c1000 -t50   --- h2
./h2load http://xx.xx.xx.xx:4090 -n50 -c1000 -t50   --- h2c

and at the server side config is 
http2_max_concurrent_streams 60;-
http2_max_requests 60;
http2_streams_index_size 524288;

The h2c is getting 23008.09 req/sec and h2 96091.85 req/sec

The request is for default page provided with nginx instalation

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,280098,280098#msg-280098

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: increase video image size

2018-06-08 Thread neuronetv
Roman Arutyunyan Wrote:
---

> Something like this should work:
> 
> application /src {
> live on;
> exec_push ffmpeg -i rtmp://localhost/src/$name -c:a copy -c:v
> libx264
>  -s 640x480 -f flv rtmp://localhost/dst/$name;
> }
> 
> application /dst {
> # proceed here
> }
> 

thanks, does this go in my nginx.conf file?

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,280079,280097#msg-280097

___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Re: [nginx] Added r->schema.

2018-06-08 Thread Ruslan Ermilov
On Fri, Jun 08, 2018 at 11:29:05AM +0800, 洪志道 wrote:
> Hi.
> 
> diff -r 8e6bb4e6045f src/http/ngx_http_variables.c
> --- a/src/http/ngx_http_variables.c Thu Jun 07 20:04:22 2018 +0300
> +++ b/src/http/ngx_http_variables.c Thu Jun 07 12:20:05 2018 -0400
> @@ -1420,25 +1420,11 @@
>  ngx_http_variable_scheme(ngx_http_request_t *r,
>  ngx_http_variable_value_t *v, uintptr_t data)
>  {
> -#if (NGX_HTTP_SSL)
> -
> -if (r->connection->ssl) {
> -v->len = sizeof("https") - 1;
> -v->valid = 1;
> -v->no_cacheable = 0;
> -v->not_found = 0;
> -v->data = (u_char *) "https";
> -
> -return NGX_OK;
> -}
> -
> -#endif
> -
> -v->len = sizeof("http") - 1;
>  v->valid = 1;
>  v->no_cacheable = 0;
>  v->not_found = 0;
> -v->data = (u_char *) "http";
> +v->len = r->schema.len;
> +v->data = r->schema.data;
> 
>  return NGX_OK;
>  }
> 
> Thanks.

A similar patch has already been considered and rejected:
https://trac.nginx.org/nginx/ticket/1549#comment:5

See also https://trac.nginx.org/nginx/ticket/711.
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel