httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] select-thread-hybrid-01.patch
Date Thu, 20 May 1999 03:26:33 GMT


On Thu, 20 May 1999, Tony Finch wrote:

> Dean Gaudet <dgaudet@arctic.org> wrote:
> >
> >FWIW, here's the list of responseq messages I expect:
> >
> >RESPONSEQ_SEND_MMAP,		/* copy from memory to BUFF */
> >RESPONSEQ_SEND_FILE,		/* copy from file to BUFF */
> >RESPONSEQ_SEND_PIPE,		/* copy from pipe to BUFF */
> >RESPONSEQ_LINGERING_CLOSE,	/* handle lingering close */
> >RESPONSEQ_WAIT_FOR_READ,	/* handle persistent connections */
> 
> If you have an async request handling thread would it help to use it
> for DNS lookups too? or does that clash too much with the existing
> programming model?

I hadn't really thought about DNS lookups... 

> Hmm, how do you handle logging when you hand off the response handling
> to a separate thread? do you log right after the hand-off?

The plan is to hand it back to a worker thread for logging -- essentially
the primitives which the event thread supports are almost non-protocol
specific.  Anything to do with the protocol decision happens in the worker
threads. 

Dean



Mime
View raw message