Re: What's the "right" way to spawn a child in modules?

2006-04-28 Thread Brian Akins
Niklas Edmundsson wrote: I might add that our FTP mirror has a bunch of DVD images, and even at full gigabit speed it takes some 40 seconds to cache it and that's simply too long before the server starts responding by sending data to the client. Probably a little OT, but why don't you just rsy

Re: What's the "right" way to spawn a child in modules?

2006-04-28 Thread Niklas Edmundsson
On Thu, 27 Apr 2006, Brian Akins wrote: Would it be considered offensive to do apr_thread_create() if threads are available and fork() otherwise? sounds reasonable - having only thought about it for 10 seconds.. OK. I'll try then and see how it plays out. Any particular reason your backend

Re: What's the "right" way to spawn a child in modules?

2006-04-27 Thread Nick Kew
On Thursday 27 April 2006 14:51, Brian Akins wrote: > Niklas Edmundsson wrote: > > The naive solution is to spawn a child that does the copying letting the > > request be processed simultaneously. Is this doable? > > possibly... Might be worth looking at how the various CGI implementations work.

Re: What's the "right" way to spawn a child in modules?

2006-04-27 Thread Brian Akins
Niklas Edmundsson wrote: The naive solution is to spawn a child that does the copying letting the request be processed simultaneously. Is this doable? possibly... Would it be considered offensive to do apr_thread_create() if threads are available and fork() otherwise? sounds reasonable - h

What's the "right" way to spawn a child in modules?

2006-04-27 Thread Niklas Edmundsson
puter club admins. The goal is to make the thing usable on http://ftp.acc.umu.se/ after all (and no, we don't have a budget so we can't compensate bad code with more hardware ;). Anyhow, my real question: What's the "right" way to spawn a child in modules? The problem