[libmicrohttpd] Handling range requests with libmicrohttpd
From:
rsanchez1990
Subject:
[libmicrohttpd] Handling range requests with libmicrohttpd
Date:
Tue, 28 Dec 2010 17:18:43 -0500
Hello,
I'm using libmicrohttpd as a streaming server that serves audio files to an HTML5 Audio object. It's working fine for small files, but for songs that are longer and have larger files, the audio object sends a range request and because I'm not handling the request properly, the audio object fails. I am using MHD_USE_THREAD_PER_CONNECTION in MHD_start_daemon(), and I create a response like this: