Policy on global variables

Jason A. Donenfeld Jason at zx2c4.com
Fri Jan 17 00:42:10 CET 2014


On Thu, Jan 16, 2014 at 11:20 PM, John Keeping <john at keeping.me.uk> wrote:
> At once (as in in parallel), or without needing to fork for every
> request?  I think that many requests serially in the same process is a
> much more likely scenario (that's what FastCGI does); in that case all
> we need to do is clean up after each request and it doesn't make much
> difference if that state is global or passed down through the functions
> that need it.

Yea, that's a good point I suppose. Parallel request capability would
still be nice, in some abstract sense, but I guess it's not clear what
the benefits would be practically. I'll merge Lukas' patch, and we'll
refactor later if necessary.


More information about the CGit mailing list