On Sat, Dec 12, 2015 at 08:09:44AM -0700, Theo de Raadt wrote: > > on one hand i agree with you, but on the other i wonder why httpd thinks > > setting events up on files is useful.= > > I wondered this too. And since this is libevent, and poll/select cannot > do anything like that, what is the goal? >
httpd is designed to use libevent's event buffers - not really for poll/select - to fill the buffers as long as data is available and to write it out as soon as possible; with throttling and wartermarks involved. It pretty much works like relayd, and intentionally uses the same relaying between fds (in this case between file/fastcgi and tcp/tls connections). Honestly, I didn't think of somebody serving files from iso9660 filesystems, but there are always surprises ;) Reyk
