Permalink
Browse files

Allow skunk to run async

  • Loading branch information...
1 parent 15a1214 commit c7f4ea64ec648ecfeda8488ea2bc426da7732139 @tadzik committed Jun 6, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 Skunk.cpp
  2. +1 −1 Skunk.hpp
  3. +1 −1 skunk_test.cpp
View
@@ -358,7 +358,7 @@ CSGI::Response Skunk::Server::operator()(CSGI::Env& env) {
/**
* Uruchamia server CSGI
* */
-void Skunk::Server::run() {
+void Skunk::Server::run(bool async) {
CSGI::Server srv(this, 8080);
- srv.run(false);
+ srv.run(async);
}
View
@@ -224,7 +224,7 @@ class Server : CSGI::Application {
void setAuth(Auth *a) { auth_ = a; }
std::string isAuthed(CSGI::Env&);
void removeSession(CSGI::Env&);
- void run();
+ void run(bool);
CSGI::Response get(CSGI::Env&, std::string&);
virtual CSGI::Response operator()(CSGI::Env&);
};
View
@@ -75,5 +75,5 @@ int main(void) {
srv->setAuth(auth);
- srv->run();
+ srv->run(false);
}

0 comments on commit c7f4ea6

Please sign in to comment.