Re: [exim] data-phase efficiency

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: Jeremy Harris
CC: exim-users @ exim. org
Temat: Re: [exim] data-phase efficiency
On Tue, 17 May 2005, Jeremy Harris wrote:

> alarm(300)                              = 0
> write(6, "mMR5AToGQBc3mGQLHkBBLmVYZAbZJ4iP"..., 8190) = 8190
> alarm(0)                                = 300

>
> Could a select(or poll) for writability be used instead of
> alarm, saving one syscall/cycle?


I am a simple-minded programmer who likes to do things the easy way. As
far as I can see, select() doesn't have an interface for asking "can I
write 8190 bytes within 5 minutes?", which is what is needed here.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book