I too am having a problem with a variation of this. It seems that when the handler is called again due to MG_REQUEST_CALL_AGAIN that neither mg_printf_data nor mg_send_data will actually send data to the browser. Is this by design and I'm just not understanding or is it a bug?
What I'm ultimately trying to do is pass lengthy requests off to a thread and for each MG_REQUEST_CALL_AGAIN iteration I check to see if the thread has finished. However, in trying to debug why nothing was getting to the browser I ended up with simple code similar to the above. -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
