the current implementaion of “send_http_response_body” leaves the file_name variable unset if the length of the file is shorter than file_len > DATA_BUF_SIZE - 1. The block from line 358 to 365 has to be moved between 351 and 352. Additionally to this thread I added an isue at GIT.
Regards,
Knut
First, there is a reason to store uri in a separate structure for data larger than the buffer size.
When a request comes from a client in the idle state, it responds immediately.
That is, for a response that does not exceed the buffer size, the response state is completed by that processing.
On the other hand, for responses that exceed the buffer size, you must send them multiple times.
For this reason, the module is to save the uri that was being sent to a special structure to remember.
(That’s why wrote the code ///// )