"Range:" HTTP header freezes in ColdFusion application

Whenever I add a range header in the HTTP request for a .cfm or .cfc file on my server, I get a timeout. The server is simply not responding.

To debug, I created an empty file called /signup/test.cfm on my server. It does not contain anything. Then I make a normal request and an edited request for the file:

Request: GET /signup/test.cfm HTTP/1.1 Host: site.com Response: HTTP/1.1 200 OK Request: GET /signup/test.cfm HTTP/1.1 Host: site.com Range: bytes=0-40960 Response: timeout in transmission from site.com 

If I include the Range header in the request to a static file, there is no problem.

What could be the reason for this and how to debug it? The file I am requesting is empty, so no code should be executed. Application.cfc is empty. Since I do not assume that the code is not running, does this mean that this is a server configuration problem?

EDIT: By adding a tag to my script, I confirmed that it is executing ColdFusion code. The answer is simply not sent back to me.

+4
source share
1 answer

Most likely, the cf parser does not work with range requests while the static handler is running.

Range - selection of part of the content and subsequent selection later. For instance. Stream video files or download. The script handler is not easily handled, as the request must be returned immediately.

Here's a stackoverflow requesting a range of fetch to show how this works Example HTTP range request session

0
source

Source: https://habr.com/ru/post/1482176/


All Articles