Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Remove 'em' endpoint special case for linux extension #21

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions Release/src/http/listener/http_server_asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ namespace
auto exe_name = boost::filesystem::read_symlink("/proc/self/exe").filename().string();
boost::filesystem::path socket_path = exe_path/"sockets";
boost::filesystem::path socket_file_path;
boost::filesystem::path dsc_config_path = exe_path/"dsc.config";

if (exe_name.find("worker")!=std::string::npos)
{
Expand All @@ -223,25 +222,6 @@ namespace
socket_file_path = socket_path / "dsc";
}

try {
utility::ifstream_t file_handle(dsc_config_path.string());
utility::stringstream_t contents;

if (file_handle) {
contents << file_handle.rdbuf();
file_handle.close();
web::json::value dsc_config = web::json::value::parse(contents);
if (dsc_config.has_field(U("ServiceType"))) {
utility::string_t service_type = dsc_config.at(U("ServiceType")).as_string();
if(boost::iequals(service_type, U("Extension"))) {
socket_file_path = socket_path / "em";
}
}
}
}
catch (web::json::json_exception excep) {
}

return socket_file_path.string();
}

Expand Down