i want to download files which are served with the mg_http_serve_file function. The problem i have is not getting the download startet but i get a timeout on the client side (libCurl library) if the file is so large that it can't be downloaded completely until the timeout is reached. I don't think that this is a libCurl problem because if i download the file from a normal webserver like Apache or Nginx i don't get a timeout on the libCurl side.
Is there something i missed? I put it together like it is mentioned here -> https://cesanta.com/docs/http/files.html