apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Pane <bp...@pacbell.net>
Subject Re: [PATCH] lower CPU for sending data via sendfile()
Date Tue, 09 Apr 2002 19:03:18 GMT
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?

--Brian




Mime
View raw message