On 11/27/06, Bernd Eidenschink <[EMAIL PROTECTED]> wrote:

Hi ya,

what's the easiest way to deactivate Range-Support?

Removing the line

    Ns_ConnCondSetHeaders(conn, "Accept-Ranges", "bytes");

in nsd/return.c?

I'm hunting a bug and have to find out whether it's client or server related.

Bernd.


I don't think that will be enough.  Some clients probably
speculatively send the range request whether support is advertised or
not, expecting a complete response if range requests are not
supported.

Turn off range requests by disabling the following test in
nsd/fastpath.c:FastReturn()


   /*
    * Check if this is a Range: request and parse the
    * requested ranges..
    */

   if (ParseRange(conn, &range) == NS_ERROR) {
       Ns_ConnPrintfHeaders(conn, "Content-Range", "bytes */%lu", range.size);
       return Ns_ConnReturnStatus(conn, range.status);
   }

Reply via email to