[Cppcms-users] Front-end http server without upload buffering
Brought to you by:
artyom-beilis
From: Julian P. <ju...@wh...> - 2010-11-23 18:00:30
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hallo, I want to use a cppcms application in a productional setting. As it's discouraged to use cppcms's http API directly, I need a fast/scgi-capable, lightweight webserver that will handle the HTTP-Requests, serve static files and forward the requests to cppcms. The problem that occured is, that two of the most prominent webservers, lighttpd and nginx, need to buffer POST uploads completly before they are passed to the fastcgi backend, and both projects don't want to implement a direct passthrough for the POST bodies. For me this is a problem, because the named cppcms application is a firmware upload server, which has to process the firmware file during upload because the flash memory on the device this server runs on is very limited, and if I understand it right, an upload would take at least 2x the size of the firmware file being uploaded, because lighttpd/nginx will store it, then pass it to the cppcms fastcgi backend where cppcms stores it to a temporary file again. So for a file of e.g. 120M we would need at least 240M, but the drive has only the 120M for one copy of the firmware file. Do you know of any lightweight webserver that will allow to passthrough the body to cppcms without buffering? Or is the only solution to run cppcms in standalone mode as its own webserver? Where'd be the risks to do so? Thanks for your answers, Julian -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJM7AFpAAoJENidYKvYQHlQS2wP/Azz+qbylcYIlHdJXv/UvjGl PIhG+CA7wkybhPC9ZgOuTmt8ft41RrkPlL38SZ2TBK354nr01nWvpUoD6VYyRYtX zf9hd6c1HSoy6qfucyHHF8YWtFHHTpLJYVSnHqRP0JKVi3m2xgMEOikhGjphbvPN dSTQKgUqupzcDb81XV8TUI37hm0A4/rhbyyh0JlcZDTiLuS/3LeA7GqwmtwFKvd8 N/vMB96Ddgrp4eKdTQWIk8PGgtuQAnFgMRFjcMGiVvDLJ8utiTsqlgFXcgPUx9jF 1WF/l3kRngYPh3qYp8cFDOLf/C8o2oOKDiC5TzKKfJJTbEyl42nB5EGMUt1y7Uy/ tojBcG+agnrrhXknnAr8DwvFcsP9qYJlbEgmwq8aO+HwFrsNFG0tVIKsaaB5cto7 Krq4ZwazUjO/uIPhEpke7uqm/1Giv6vuU7dQtXOFXzRkQCJV9S4Z9BX7uofvgLAT ZPgT58/RmzXrv74zuoiyIhvyqBCUmp5JMYiVOYumxCIikimCU4z3eMea15Gctxho dICG1BsrSfhf4dkcq6m/o5q4gIG+hAQjcuBIY5SJDxmxobXdfJy9+uMj0QEEvLRh Pf/OjynrSzapWFwCpMSid0+rnZme1dXaoyexA9clVYuL9dslREJclfw6uzaccENj /W2FSA9q3Nb6weDJdndj =di79 -----END PGP SIGNATURE----- |