| 48 | static constexpr auto MAX_RESPONSE_WAITING_TIME = 30; // if a backend is non-responsive for 30 seconds, it's considered dead |
| 49 | |
| 50 | static std::string getUtf8CurrentDir() { |
| 51 | char dirPath[MAX_PATH]; |
| 52 | size_t len = MAX_PATH; |
| 53 | uv_cwd(dirPath, &len); |
| 54 | return dirPath; |
| 55 | } |
| 56 | |
| 57 | static std::vector<std::string> getUtf8EnvironmentVariables() { |
| 58 | // build our own new environments |