commit 61f9965eb408b8f749dbbcb42d49b88c9d23788e from: Stefan Sperling via: Thomas Adam date: Thu May 25 11:33:07 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 - e18312d9b6e6e3f6c78f904238ceaae3b8d4ccac commit + 61f9965eb408b8f749dbbcb42d49b88c9d23788e blob - 358100421a640da24ee6f5d6182c3ebe61ad1a2f blob + 821e58a3ea05345ba5395aa2a1c0479a70a16978 --- gotwebd/gotwebd.h +++ gotwebd/gotwebd.h @@ -115,7 +115,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;