Re: [Cppcms-users] feedback after testing cppcms svn trunk compiled with msvc2005
Brought to you by:
artyom-beilis
From: Cristian O. <one...@gm...> - 2011-01-20 11:09:52
|
On Thu, Jan 20, 2011 at 12:37 PM, Cristian Oneț <one...@gm...> wrote: > Hi, > > I'm currently testing cppcms from svn trunk compiled with msvc2005 (I > know that the wiki states that only MSVC9 and MSVC10 are supported but > MSVC8 works just as fine). > As a first impression I would like to say that the lib looks really > good. I intend to use it in combination with apache+mod_fastcgi. > After a few days of working with it I found the following issues and I > want to share them with you: > 1. The application does not handle shutdown requests sent by > mod_fastcgi; a simple solution would be to add the mechanism used in > libfcgi (the fastcgi client implementation provided by > www.fastcgi.com) see the attached > apache_mod_fastcgi_nice_shutdown.patch - nothe that the implementation > could be improved to use a cppcms thread instead of _beginthread. > 2. When trying the hello/form example I was getting an infinite loop > in the application due to the fact that an input stream was tested > only for eof and not for validity see > http_request_infinite_loop.patch. > These two where critical issues that I would like to see solved > somehow in cppcms. The following two patches are just insignificant > improvements: > 3. Enable using external boost lib while running cmake configure and > add an extra name for the zlib library on Windows > cmake_permit_using_external_boost_and_zlib_on_win_name.patch > 4. This fixes the only code incompatibility I have found on msvc2005 > (mscv_2005_compatibility.patch) but googleing revealed that this can > be fixed using a never winsdk so this is only important if upgrading > is not an option > This is all for now. > > Regards, > Cristian Oneț > Sorry I have one more patch that I forgot about. When running with apache+mod_fastcgi the application runs in context of NTAUTHORITY\SYSTEM which can't use CryptAcquireContext the way it's used by a normal user (so it's failing) see [1] but from the msdn docs [2] it seems that cppcms should call CryptAcquireContext with CRYPT_VERIFYCONTEXT flag (see the flag's description). [1] http://www.eggheadcafe.com/software/aspnet/32785121/how-to-prevent-microsoft-csps-from-using-dpapi.aspx [2] http://msdn.microsoft.com/en-us/library/aa379886%28v=vs.85%29.aspx Regards, Cristian Oneț |