Mercurial 1.0 released!

Manlio Perillo manlio_perillo at libero.it
Thu Mar 27 10:51:45 UTC 2008


Dirkjan Ochtman ha scritto:
> Manlio Perillo <manlio_perillo <at> libero.it> writes:
>> Does the web interface still make use of the write callable?
> 
> Yes, but I've made some progress towards removing that. I have some more csets
> for further refactoring of hgweb, and part of what I want to do is move to just
> returning the iterable the way WSGI recommends. If you're able to track crew,
> just look at what shows up (shouldn't be too long now).
> 
> (You're the nginx-mod_wsgi guy, right? 

Right.

Implementing the write callable in an pure asynchronous server like 
Nginx is a little tricky.
I have implemented two solutions, the former just sends the data 
synchronously (setting the socket to blocking mode and then restoring it 
to nonblocking), the latter make use of a memory (or file, if allocated 
memory is not enough) buffer to store the data.


Note that a possible solution for Mercurial is to buffer the data to a 
file and then use wsgi.file_wrapper.
I have just implemented it for the nginx wsgi module.


> I've been tracking your repo, looks very
> interesting. I'm waiting for a good project to try it out.)
> 

Thanks!
I will try to track the crew repository, unfortunately I don't have much 
free time.

> Cheers,
> 
> Dirkjan
> 


Manlio Perillo



More information about the Mercurial mailing list