Re: [Cppcms-users] upload progress
Brought to you by:
artyom-beilis
From: Frank E. <fra...@an...> - 2010-07-21 19:59:33
|
hi, after some research i found the following facts to be helpful for upload progress using nginx with cppcms backend in fastcgi mode: i implemented some global object to track running uploads in cppcms. after i got it running i learned that nginx buffers the _complete_ post before sending it to the fastcgi backend. this is by design and not alterable. i also stumbled upon a nginx module which can be used to implement upload progress indicators using java script and XHR - solved completely within nginx. so i found what i searched for (upload progress indicator), but this also means that - cppcms with nginx can not be used to 'stream' post data directly to cppcms backend in fastcgi mode - nginx always cashes post requests and sends them then completely to the fastcgi backend (cppcms) which does not block cppcms while receiving data from a slow connection (which could be a good thing) - i don't need to patch cppcms to support progress indicatorrs for post requests (which i'm glad about) though this is not really new it might help a little bit. it's fo sure something to be mentioned in the documentation when the upload handling is changed in RC1. as i understood this will offer the possibility to abort a running upload; well if you have nginx in front it might not work as expected. http://wiki.nginx.org/NginxHttpUploadProgressModule - lighthttpd also has a module like that. regards, frank Am 18.07.2010 13:34, schrieb Artyom: >> >> it should be simple and simple to use. since i now need this >> functionality i'll try to hack something in the the current library >> version, but it won't be a beautiful solution and i'd like to replace it >> as soosn as available with a version from upstream. >> >> frank >> > > > For this you may take a look on: > > - http_file.cpp, which handles incoming chunks. > - cgi_api.cpp functions: load_content and on_some_multipart_read > > Note: at this point there is no associations with an application yet, > and there is no session information loaded, so you should be very careful > with the assumptions of what you can actually do. > > Artyom > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users -- Dipl.-Ing. (FH) Frank Enderle anamica UG (haftungsbeschränkt) Beinsteinerstr. 6 71334 Waiblingen Telefon: +49 151 14981091 Telefax: +49 7151 1335770 E-Mail: fra...@an... Internet: www.anamica.de Handelsregister: AG Stuttgart HRB 732357 Geschäftsführer: Yvonne Holzwarth, Frank Enderle |