Re: [Cppcms-users] async connections and response headers
Brought to you by:
artyom-beilis
From: Frank E. <fra...@an...> - 2010-07-14 06:18:53
|
hi artyom, the 404 issue is now fixed. making response().finalize() going away is also much more intuitive; the cleanup after main if the application didn't do so also. what remains is the header issue. my test application still sends only the content without headers. i attached capture from wireshark of the http conversation between server and browser and the scgi conversation between nginx and the application. while in the http conversation no response headers are shown the scgi dump shows that at least content-type and x-powered had been sent. nginx obviously filtered them out due to the missing standard headers. the test application has been compiled against svn-1317. i also attached the application again since i did the changes you suggested. i also tried to set the status code explicitly without success. maybe you can have a look at this again - maybe i just made some mistake in the application.. frank.. Am 13.07.2010 23:29, schrieb Artyom: > Hello, > > > >> >> hey, >> >> i switched to the beta. however the problem with the missing response >> headers persist. so please notify me when you commit changes that should >> address this. meanwhile i try to live without response headers. > > > Ok. I cleaup the synchronous and asynchronous request handling added test cases > for both, > now it looks fine, including sending 404 in case of unmapped url. > > Hopefully no more surprises are expected. > > One important change in behavior had added: > > - if the application do not releases asynchronous request before exiting main > function, it is automatically > finalized and closed, so if you want to postpone response, don't forget to > call release_context(). > - it is no more required to call response().finalized() function as > async_complete_response() does all job. > > > Thanks for the issue report, > > 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 |