{"id":13490049,"url":"https://github.com/cujanovic/nginx-dynamic-tls-records-patch","last_synced_at":"2026-01-24T15:36:22.556Z","repository":{"id":111876612,"uuid":"70693663","full_name":"cujanovic/nginx-dynamic-tls-records-patch","owner":"cujanovic","description":"Add TLS Dynamic Record Resizing to Nginx","archived":false,"fork":false,"pushed_at":"2017-05-23T13:27:46.000Z","size":6,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T03:35:29.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cujanovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-12T11:34:35.000Z","updated_at":"2024-08-12T19:25:26.000Z","dependencies_parsed_at":"2023-07-16T00:46:16.460Z","dependency_job_id":null,"html_url":"https://github.com/cujanovic/nginx-dynamic-tls-records-patch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cujanovic%2Fnginx-dynamic-tls-records-patch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cujanovic%2Fnginx-dynamic-tls-records-patch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cujanovic%2Fnginx-dynamic-tls-records-patch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cujanovic%2Fnginx-dynamic-tls-records-patch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cujanovic","download_url":"https://codeload.github.com/cujanovic/nginx-dynamic-tls-records-patch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978200,"owners_count":20703675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T19:00:39.952Z","updated_at":"2026-01-24T15:36:22.514Z","avatar_url":"https://github.com/cujanovic.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# nginx-dynamic-tls-records-patch\nAdd TLS Dynamic Record Resizing to Nginx\n\nFrom a424fefb0a638eb6d32756b5a0c471efc63e5384 Mon Sep 17 00:00:00 2001\nFrom: Vlad Krasnov\n\nDate: Sat, 9 Jan 2016 06:53:14 -0800\n\nSubject: [PATCH] - Add TLS Dynamic Record Resizing\n\n\n\nWhat we do now:\n\nWe use a static record size of 4K. This gives a good balance of latency and\nthroughput.\n\n\n\nOptimize latency:\n\nBy initialy sending small (1 TCP segment) sized records, we are able to avoid\nHoL blocking of the first byte. This means TTFB is sometime lower by a whole\nRTT.\n\n\n\nOptimizing throughput:\n\nBy sending increasingly larger records later in the connection, when HoL is not\na problem, we reduce the overhead of TLS record (29 bytes per record with\nGCM/CHACHA-POLY).\n\n\n\nLogic:\n\nStart each connection with small records (1369 byte default, change with\nssl_dyn_rec_size_lo). After a given number of records (40, change with\nssl_dyn_rec_threshold) start sending larger records (4229, ssl_dyn_rec_size_hi).\nEventually after the same number of records, start sending the largest records\n(ssl_buffer_size).\n\nIn case the connection idles for a given amount of time (1s,\nssl_dyn_rec_timeout), the process repeats itself (i.e. begin sending small\nrecords again).\n\n\n\nUpstream source:\n\nhttps://github.com/cloudflare/sslconfig/blob/master/patches/nginx__dynamic_tls_records.patch\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcujanovic%2Fnginx-dynamic-tls-records-patch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcujanovic%2Fnginx-dynamic-tls-records-patch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcujanovic%2Fnginx-dynamic-tls-records-patch/lists"}