apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] lower CPU for sending data via sendfile()
Date Wed, 10 Apr 2002 03:18:03 GMT
Brian Pane <bpane@pacbell.net> writes:

> Jeff Trawick wrote:
> 
> >+    if (sock->netmask & APR_INCOMPLETE_WRITE) {
> >+        sock->netmask &= ~APR_INCOMPLETE_WRITE;
> >+        goto do_select;
> >+    }
> >+
> >     do {
> >         rv = sendfile(sock->socketdes,	/* socket */
> >         	      file->filedes,	/* open file descriptor of the file to be sent
*/
> >
> 
> Without this patch, what was happening?  Did you get EAGAIN on the
> sendfile call?

yeah, a wasted (EAGAIN) sendfile call for every good sendfile call

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message