summaryrefslogtreecommitdiff
path: root/project2/cgi
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2014-03-15 13:18:17 +0000
committerrandomdan <randomdan@localhost>2014-03-15 13:18:17 +0000
commita54540515e0745d24e546dde26231d2f0f5bb8ad (patch)
tree574dbb941b56508e213661ba273e805415714b13 /project2/cgi
parentBuild ICE modules in parallel (diff)
downloadproject2-a54540515e0745d24e546dde26231d2f0f5bb8ad.tar.bz2
project2-a54540515e0745d24e546dde26231d2f0f5bb8ad.tar.xz
project2-a54540515e0745d24e546dde26231d2f0f5bb8ad.zip
Add a stream presenter, allows output of any source stream
Propergate stream exceptions back to presenters Expose the ICE communicator from iceDataSource
Diffstat (limited to 'project2/cgi')
-rw-r--r--project2/cgi/cgiAppEngine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/project2/cgi/cgiAppEngine.cpp b/project2/cgi/cgiAppEngine.cpp
index 872f896..234cbeb 100644
--- a/project2/cgi/cgiAppEngine.cpp
+++ b/project2/cgi/cgiAppEngine.cpp
@@ -125,6 +125,7 @@ finalTransformSource(TransformSourcePtr ts)
void
CgiApplicationEngine::process(std::ostream & IO, CgiRequestContext * crc) const
{
+ IO.exceptions(std::ifstream::failbit | std::ifstream::badbit);
bool sessionEmpty = crc->getSession()->Empty();
crc->startTime = boost::date_time::microsec_clock<boost::posix_time::ptime>::universal_time();
bool triedNotFound = false;