pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/46458: Apache 2.4 uses TCP_NOPUSH with sendfile(2), breaking it



>Number:         46458
>Category:       pkg
>Synopsis:       Apache 2.4 uses TCP_NOPUSH with sendfile(2), breaking it
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 17 10:10:00 +0000 2012
>Originator:     Francois Tigeot
>Release:        DragonFly
>Organization:
>Environment:
DragonFly serenity.zefyris.com 3.1-DEVELOPMENT DragonFly 
v3.1.0.624.g178907-DEVELOPMENT #6: Thu May  3 15:28:20 CEST 2012     
ftigeot%serenity.zefyris.com@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC  
x86_64
>Description:
Having updated a web server to apache-2.4 (sendfile enabled), I noticed
static images stopped downloading mid-way for a few seconds.

After some investigations, apache was found to use APR_TCP_NOPUSH with
sendfile. This flag prevents the last part of the file to be sent until
after the associated socket has been closed.

The visible result is a 5-second delay between reception of the first
and last parts of static files.
>How-To-Repeat:
Install www/apache24
Use it to download a static file. A 10KB pictures gives very visible results.
>Fix:
Add this patch to the patches/ directory:
http://dl.wolfpond.org/patch-server_core_filters.c.txt



Home | Main Index | Thread Index | Old Index