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 Wed, 10 Apr 2002 05:55:04 GMT
Jeff Trawick wrote:

>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
>

Got it...  I'll add the same fix for the writev case tomorrow
if nobody else gets to it first.

--Brian



Mime
View raw message