[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Processing large binary data in chunks?
From: |
Jared Cantwell |
Subject: |
Re: [libmicrohttpd] Processing large binary data in chunks? |
Date: |
Wed, 23 Oct 2013 13:58:37 -0600 |
We haven't tested the extremes of using a thread per connection and "blocking" 10MB at a time, but I was wondering if there was an obvious reason why that wouldn't work (assuming we trickle enough to prevent socket timeouts)? It seems like the MHD event loop might pull as much as it can off the socket, which means that if we haven't completely emptied the buffer an error could occur? Or does MHD first try to only pull enough data off the socket for the amount of space available in the buffer?