I have enjoyed playing with libcgicc. I do appreciate the work you
have done in it.
There is an insufficient memory allocation issue for strings
representing large files uploaded to the web server.
The good news is that the web server does not crash because of this
issue. It simply lags in a disk-thrashing state for some time(about
5 minutes in the use-case that follows: I have 512MB RAM with 12GB
free on the hard drive. I uploaded a 700MB file through upload and
the webserver did not succeed. The web server returned an error. I
had enough swap 2.1 GB.)
Anyways, I am looking into where would be the best places to make
some modifications regarding the uploaded large file data handling,
and upload file size limiting. In the meantime, I am avoiding using
the upload functionality because of this.
I have discovered fData is a string type. I was looking for a
simple way of breaking down the file data into small parts for which
to handle in a buffer within my current machine's RAM capacity. i.e.
4MB buffer blocks. The other observation I have would perhaps be to
have someway to limit the uploaded file size within the API.