gitea/docs/content/doc/advanced
zeripath f034804e5d
Set self-adjusting deadline for connection writing (#16068) (#16123)
In #16055 it appears that the simple 5s deadline doesn't work for large
file writes. Now we can't - or at least shouldn't just set no deadline
as go will happily let these connections block indefinitely. However,
what seems reasonable is to set some minimum rate we expect for writing.

This PR suggests the following algorithm:

* Every write has a minimum timeout of 5s (adjustable at compile time.)
* If there has been a previous write - then consider its previous
deadline, add half of the minimum timeout + 2s per kb about to written.
* If that new deadline is after the minimum timeout use that.

Fix #16055

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
2021-06-11 00:26:32 +03:00
..
adding-legal-pages.en-us.md Add Privacy Policy and Terms of Service Page (#9513) 2020-01-14 14:34:40 +01:00
clone-filter.en-us.md [Docs] Clone filters (#14555) 2021-02-03 10:11:20 -05:00
cmd-embedded.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
config-cheat-sheet.en-us.md Set self-adjusting deadline for connection writing (#16068) (#16123) 2021-06-11 00:26:32 +03:00
config-cheat-sheet.zh-cn.md Add ui.explore settings to control view of explore pages (2) (#14094) 2021-03-11 13:40:54 +00:00
customizing-gitea.en-us.md Note that all template directories are relative to the `CustomPath` configuration, not a `custom` directory inside it (#14399) 2021-01-19 10:50:55 -05:00
customizing-gitea.zh-cn.md Rename custom/conf/app.ini.sample to custom/conf/app.example.ini for better syntax light on editor (#11926) 2020-06-17 23:16:59 -04:00
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
environment-variables.zh-cn.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
external-renderers.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
hacking-on-gitea.zh-cn.md ZH-CN translation of Advanced part (#5090) 2018-10-17 14:21:20 +03:00
logging-documentation.en-us.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
mail-templates-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
make.fr-fr.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
make.zh-cn.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
repo-indexer.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
search-engines-indexation.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
signing.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
third-party-tools.zh-cn.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00