httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "RobS" <r...@ipass.net>
Subject RE: errnos and buff.c
Date Thu, 17 Dec 1998 04:39:38 GMT
> - Why does bwrite() generally cause the BUFF to be emptied (e.g. even when
> one write() might suffice to move the contents of buf into fb and
> !chunking)?  The current approach can mean more total calls to write() and
> more byte shifting.

Mumble. Mumble.  To be more specific (and correct)..

Effectively, the call to write_it_all() should have an nbytes arg and
write_it_all() should check to see if it could memcpy (and update
appropriate BUFF members) instead of continuing in the write loop.

Effectively, the writev_it_all() call from large_write() should check to see
if it could memcpy a section of the last segment (and update appropriate
BUFF members) instead of continuing in hte write loop.

This is what the path through write_with_errors() does.

  robs


Mime
View raw message