commit c034b06627303c06e0d334eeaf3d36bc3da74325 from: Stefan Sperling date: Tue May 23 09:02:30 2023 UTC fix the size of gotwebd's array of tempfiles used for deltas Prevents ftruncate() errors due to bogus file descriptors passed from gotwebd once the repository layer runs out of temporary files to use for deltas. Have gotwebd open the maximum amount of required temporary files for now. A proper fix which scales to lower ulimit -n settings can be implemented later. Problem reported by patrick@ commit - b156a14e478c9485a080a24f237f70b6c8984182 commit + c034b06627303c06e0d334eeaf3d36bc3da74325 blob - 5f1937de876a13a490b2ddb66ec7530a57bf47ad blob + 806012ae38445e49fc3162cd5d209756e7d1e9e4 --- gotwebd/gotwebd.h +++ gotwebd/gotwebd.h @@ -113,7 +113,7 @@ #define FCGI_OVERLOADED 2 #define FCGI_UNKNOWN_ROLE 3 -#define GOTWEB_PACK_NUM_TEMPFILES 32 +#define GOTWEB_PACK_NUM_TEMPFILES (32 * 2) /* Forward declaration */ struct got_blob_object;