apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44550] Solaris sendfilev() handling - EINTR appears to have sent data causing Apache2 to duplicate output chunks
Date Fri, 15 Aug 2008 00:44:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44550





--- Comment #10 from Rainer Jung <rainer.jung@kippdata.de>  2008-08-14 17:44:09 PST
---
If I'm not totally wrong in what I'm doing, I am now down to the following
finding:

In my test case I throw away all sendfilev buffers directly before the call to
sendfilew coming from httpd and create 17 new buffers instead, each of size 1
and containing the single character 'X'. The web server indeed returns the 17
characters "X" (naturally not in an HTTP compliant way), but sendfilev says it
has written 33 bytes, i.e. again double the size of the first 16 buffers plus
the size of buffer 17.

If I go down to 16 buffers, this does not happen. If I'm using sendfilev
directly and write to a file on the file system it does not happen. If I'm
using sendfilev directly and write to a network socket directly created with
socket/bind/listen/address it does happen. So it seems this is reproducible
without apr/httpd.

Though I didn't find any obviously relevant patch in Sunsolve, I'll check
again.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message