From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Mon, 24 Apr 2017 20:55:29 +0200 Subject: [PATCH] cache: flush stdio before restoring FDs In-Reply-To: <20170424185240.GB1788@john.keeping.me.uk> References: <20170424155440.GB15623@gmail.com> <20170424185240.GB1788@john.keeping.me.uk> Message-ID: Hey John, Wow, that was quick. Konstantin and I were just talking about this. I'll review this and merge things asap. Another related thing were were discussing and I was just investigating is the inherent buffering that our cache system uses. When it's filling a slot, everything is buffered until the end, when the slot is printed. This doesn't work well for huge tars, which might buffer for more than an HTTP timeout. I'm looking into calling fork() before slot->fn() and then calling splice in the parent... Jason