fix: reject oversized checkout diffs (#2488)
* fix: reject oversized checkout diffs * fix(diff): keep large previews from disconnecting clients The physical socket limit is an OOM backstop, not a frame-size contract. Bound structured diff construction incrementally and report oversized previews without closing the client's socket. * fix(app): preserve oversized diff state * fix(diff): stay within relay frame limit --------- Co-authored-by: Mohamed Boudra <boudra.moha@gmail.com>
This commit is contained in:
co-authored by
Mohamed Boudra
parent
16bbead5a4
commit
9e5accee3c
@@ -764,6 +764,8 @@ export const ar: TranslationResources = {
|
||||
closeChangesTab: "إغلاق علامة تبويب التغييرات",
|
||||
binaryFile: "ملف ثنائي",
|
||||
tooLarge: "الفرق كبير جدًا بحيث لا يمكن عرضه",
|
||||
previewTooLargeTitle: "هذا الفرق كبير جدًا بحيث لا يمكن معاينته",
|
||||
previewTooLargeDescription: "ضيّق نطاق المقارنة لمعاينتها هنا",
|
||||
unified: "الفرق الموحدة",
|
||||
split: "فرق جنبًا إلى جنب",
|
||||
switchToUnified: "التبديل إلى الفرق الموحد",
|
||||
|
||||
@@ -774,6 +774,8 @@ export const en = {
|
||||
closeChangesTab: "Close Changes tab",
|
||||
binaryFile: "Binary file",
|
||||
tooLarge: "Diff too large to display",
|
||||
previewTooLargeTitle: "This diff is too large to preview",
|
||||
previewTooLargeDescription: "Narrow the comparison to preview it here",
|
||||
unified: "Unified diff",
|
||||
split: "Side-by-side diff",
|
||||
switchToUnified: "Switch to unified diff",
|
||||
|
||||
@@ -795,6 +795,8 @@ export const es: TranslationResources = {
|
||||
closeChangesTab: "Cerrar la pestaña Cambios",
|
||||
binaryFile: "archivo binario",
|
||||
tooLarge: "La diferencia es demasiado grande para mostrarse",
|
||||
previewTooLargeTitle: "Este diff es demasiado grande para previsualizarlo",
|
||||
previewTooLargeDescription: "Reduce la comparación para previsualizarla aquí",
|
||||
unified: "Diferencia unificada",
|
||||
split: "Diferencia de lado a lado",
|
||||
switchToUnified: "Cambiar a diferencia unificada",
|
||||
|
||||
@@ -794,6 +794,8 @@ export const fr: TranslationResources = {
|
||||
closeChangesTab: "Fermer l'onglet Modifications",
|
||||
binaryFile: "Fichier binaire",
|
||||
tooLarge: "Diff trop grand pour être affiché",
|
||||
previewTooLargeTitle: "Ce diff est trop volumineux pour être prévisualisé",
|
||||
previewTooLargeDescription: "Réduisez la comparaison pour la prévisualiser ici",
|
||||
unified: "Différentiel unifié",
|
||||
split: "Différent côte à côte",
|
||||
switchToUnified: "Passer au diff unifié",
|
||||
|
||||
@@ -775,6 +775,8 @@ export const ja: TranslationResources = {
|
||||
closeChangesTab: "変更タブを閉じる",
|
||||
binaryFile: "バイナリファイル",
|
||||
tooLarge: "差分が大きすぎて表示できません",
|
||||
previewTooLargeTitle: "この差分は大きすぎるためプレビューできません",
|
||||
previewTooLargeDescription: "比較範囲を狭めると、ここでプレビューできます",
|
||||
unified: "ユニファイド差分",
|
||||
split: "左右比較",
|
||||
switchToUnified: "ユニファイド差分に切り替え",
|
||||
|
||||
@@ -786,6 +786,8 @@ export const ptBR: TranslationResources = {
|
||||
closeChangesTab: "Fechar a aba Alterações",
|
||||
binaryFile: "Arquivo binário",
|
||||
tooLarge: "Diff grande demais para exibir",
|
||||
previewTooLargeTitle: "Este diff é grande demais para visualizar",
|
||||
previewTooLargeDescription: "Reduza a comparação para visualizá-la aqui",
|
||||
unified: "Diff unificado",
|
||||
split: "Diff lado a lado",
|
||||
switchToUnified: "Alternar para diff unificado",
|
||||
|
||||
@@ -786,6 +786,8 @@ export const ru: TranslationResources = {
|
||||
closeChangesTab: "Закрыть вкладку «Изменения»",
|
||||
binaryFile: "Бинарный файл",
|
||||
tooLarge: "Разница слишком велика для отображения",
|
||||
previewTooLargeTitle: "Этот diff слишком велик для предпросмотра",
|
||||
previewTooLargeDescription: "Сузьте сравнение, чтобы просмотреть его здесь",
|
||||
unified: "Единый дифференциал",
|
||||
split: "Параллельная разница",
|
||||
switchToUnified: "Переключить на объединенный diff",
|
||||
|
||||
@@ -756,6 +756,8 @@ export const zhCN: TranslationResources = {
|
||||
closeChangesTab: "关闭“更改”标签页",
|
||||
binaryFile: "二进制文件",
|
||||
tooLarge: "Diff 过大,无法显示",
|
||||
previewTooLargeTitle: "此 diff 过大,无法预览",
|
||||
previewTooLargeDescription: "缩小比较范围即可在此预览",
|
||||
unified: "Unified diff",
|
||||
split: "Side-by-side diff",
|
||||
switchToUnified: "切换到统一差异视图",
|
||||
|
||||
Reference in New Issue
Block a user