Commit Diff
- Commit:
61f9965eb408b8f749dbbcb42d49b88c9d23788e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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@
- Actions:
- Patch | Tree
--- 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;