| 282 | } |
| 283 | |
| 284 | void Server::ShutDownSession(const std::string& session_id) { |
| 285 | LOG(TRACE) << "Entering Server::ShutDownSession"; |
| 286 | |
| 287 | SessionMap::iterator it = this->sessions_.find(session_id); |
| 288 | if (it != this->sessions_.end()) { |
| 289 | it->second->ShutDown(); |
| 290 | this->sessions_.erase(session_id); |
| 291 | } else { |
| 292 | LOG(DEBUG) << "Shutdown session is not found"; |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | std::string Server::ReadRequestBody(struct mg_connection* conn, |
| 297 | const struct mg_request_info* request_info) { |