Welcome! Log In Create A New Profile

Advanced

SSL lags

Vladimir Getmanshchuk
November 28, 2018 11:22AM
Странная ситуация с SSL - жуткий лаг на отдаче:


# curl -w "time_connect: %{time_connect}\ntime_total: %{time_total}\n" -X
GET -s -q http://1.1.1.1/google663dfea033864f54.html -o /dev/null

time_connect: 0.000

time_total: 0.001


# curl -w "time_connect: %{time_connect}\ntime_total: %{time_total}\n" -X
GET -s -q https://1.1.1.1/google663dfea033864f54.html --insecure -o
/dev/null

time_connect: 0.000

time_total: *0.106*


# nginx -V

nginx version: nginx/1.14.1

built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)

built with OpenSSL 1.0.2g 1 Mar 2016

TLS SNI support enabled

configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
--modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock
--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx
--with-compat --with-file-aio --with-threads --with-http_addition_module
--with-http_auth_request_module --with-http_dav_module
--with-http_flv_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_mp4_module
--with-http_random_index_module --with-http_realip_module
--with-http_secure_link_module --with-http_slice_module
--with-http_ssl_module --with-http_stub_status_module
--with-http_sub_module --with-http_v2_module --with-mail
--with-mail_ssl_module --with-stream --with-stream_realip_module
--with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g
-O2 -fstack-protector-strong -Wformat -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-Bsymbolic-functions
-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'


# cat /etc/nginx/conf.d/ssl.conf

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_prefer_server_ciphers on;

ssl_dhparam /etc/nginx/ssl/dhparam.pem;

ssl_ciphers
'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';

ssl_session_timeout 1d;

ssl_session_cache shared:SSL:1024m;

ssl_stapling on;

ssl_stapling_verify on;


--
Yours sincerely,
Vladimir Getmanshchuk
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

SSL lags

Vladimir Getmanshchuk November 28, 2018 11:22AM

Re: SSL lags

Maxim Dounin November 28, 2018 12:08PM

Re: SSL lags

Vladimir Getmanshchuk November 28, 2018 12:50PM

Re: SSL lags

Maxim Dounin November 28, 2018 02:10PM

Re: SSL lags

Vladimir Getmanshchuk November 29, 2018 05:46AM

Re: SSL lags

Илья Шипицин November 29, 2018 06:10AM

Re: SSL lags

Vladimir Getmanshchuk November 29, 2018 06:56AM

Re: SSL lags

Илья Шипицин November 29, 2018 10:02AM

Re: SSL lags

Skom November 28, 2018 03:32PM

Re: SSL lags

Dmitry Morozovsky November 28, 2018 04:44PM

Re: SSL lags

Sergey Kandaurov November 28, 2018 04:48PM

Re: SSL lags

Maxim Dounin November 29, 2018 09:34AM

Re: SSL lags

Sergey Kandaurov November 29, 2018 10:04AM

Re: SSL lags

Maxim Dounin November 29, 2018 09:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready