NGINX TLS Behavior

bhaktaonline nginx-forum at forum.nginx.org
Wed Dec 26 11:56:46 UTC 2018


Thanks for the quick response, Sergey,

I set:
    postpone_output 200;

killed/restarted the server

this should have postponed writing output until 200 bytes is available. The
HTTP header is 244 bytes and it should have triggered an output.. I however
still see on single TLS record which has both header and data:

Any suggestions?

Logs:

2018/12/26 16:59:00 [debug] 14290#0: *1 content phase: 13
2018/12/26 16:59:00 [debug] 14290#0: *1 ngx_http_static_handler: http
filename: "/usr/local/nginx/html/protected/1mb.html"
2018/12/26 16:59:00 [debug] 14290#0: *1 add cleanup: 0000557495474FD0
2018/12/26 16:59:00 [debug] 14290#0: *1 http static fd: 11
2018/12/26 16:59:00 [debug] 14290#0: *1 http set discard body
2018/12/26 16:59:00 [debug] 14290#0: *1 HTTP/1.1 200 OK
Server: nginx/1.15.5
Date: Wed, 26 Dec 2018 11:29:00 GMT
Content-Type: text/html
Content-Length: 1000000
Last-Modified: Tue, 25 Dec 2018 09:02:16 GMT
Connection: keep-alive
ETag: "5c21f218-f4240"
Accept-Ranges: bytes

2018/12/26 16:59:00 [debug] 14290#0: *1 write new buf t:1 f:0
00005574954751A8, pos 00005574954751A8, size: 244 file: 0, size: 0
2018/12/26 16:59:00 [debug] 14290#0: *1 http write filter: l:0 f:0 s:244
2018/12/26 16:59:00 [debug] 14290#0: *1 http write filter limit 0
2018/12/26 16:59:00 [debug] 14290#0: *1 posix_memalign: 0000557495452950:512
@16
2018/12/26 16:59:00 [debug] 14290#0: *1 malloc: 00005574954A7320:16384
2018/12/26 16:59:00 [debug] 14290#0: *1 SSL buf copy: 244

2018/12/26 16:59:00 [debug] 14290#0: *1 http write filter 0000000000000000
2018/12/26 16:59:00 [debug] 14290#0: *1 http output filter "/1mb.html?"
2018/12/26 16:59:00 [debug] 14290#0: *1 http copy filter: "/1mb.html?"
2018/12/26 16:59:00 [debug] 14290#0: *1 malloc: 00005574954B3100:32768
2018/12/26 16:59:00 [debug] 14290#0: *1 read: 11, 00005574954B3100, 32768,
0
2018/12/26 16:59:00 [debug] 14290#0: *1 http postpone filter "/1mb.html?"
0000557495475388
2018/12/26 16:59:00 [debug] 14290#0: *1 write new buf t:1 f:0
00005574954B3100, pos 00005574954B3100, size: 32768 file: 0, size: 0
2018/12/26 16:59:00 [debug] 14290#0: *1 http write filter: l:0 f:1 s:32768
2018/12/26 16:59:00 [debug] 14290#0: *1 http write filter limit 0
2018/12/26 16:59:00 [debug] 14290#0: *1 SSL buf copy: 16140

2018/12/26 16:59:00 [debug] 14290#0: *1 SSL to write: 16384
2018/12/26 16:59:00 [debug] 14290#0: *1 SSL_write: 16384

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



More information about the nginx mailing list