help with a multi process http server.

Alex Shaw alex at harryscollar.com
Tue Jan 23 09:23:04 EST 2007


Hi Dave

I see two situations where this can be a problem (particularly when 
related to file serving) which would need a lot of extra code to work 
properly.

1. Large files. Using the "seek" command would get around this.

2. Dynamic environments where file contents can change.

So serving ever-changing large files would need a few locks & checks.

I haven't tried this but if you use the for write form to open a file 
for writing does this mean the same file cannot be opened for a read?

regards
alex

Dave Cragg wrote:

> This would put an extra burden on the scheduler when it has to write 
> back large quantities of data to simulataneous requests from different 
> clients. But I think it should be possible to slice up the responses so 
> that you only write back to the client sockets in small chunks (say 4096 
> KB at a time). This should allow simultaneous connections to appear to 
> work simultaneously.



More information about the use-livecode mailing list