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
DragonFly 3.1-DEVELOPMENT DragonFly 
v3.1.0.624.g178907-DEVELOPMENT #6: Thu May  3 15:28:20 CEST 2012  
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.
Install www/apache24
Use it to download a static file. A 10KB pictures gives very visible results.
Add this patch to the patches/ directory:

Home | Main Index | Thread Index | Old Index