0
@@ -86,29 +86,31 @@ struct SpawnOptions {
0
* The idle timeout, in seconds, of Rails framework spawners.
0
- * Set to 0 to use the default idle time.
0
+ * A timeout of 0 means that the framework spawner should never idle timeout. A timeout
0
+ * of -1 means that the default timeout value should be used.
0
* For more details about Rails framework spawners, please
0
* read the documentation on the Railz::FrameworkSpawner
0
-
unsigned int frameworkSpawnerTimeout;
0
+
long frameworkSpawnerTimeout;
0
* The idle timeout, in seconds, of Rails application spawners.
0
- * Set to 0 to use the default idle time.
0
+ * A timeout of 0 means that the application spawner should never idle timeout. A timeout
0
+ * of -1 means that the default timeout value should be used.
0
* For more details about Rails application spawners, please
0
* read the documentation on the Railz::ApplicationSpawner
0
-
unsigned int appSpawnerTimeout;
0
+
long appSpawnerTimeout;
0
* The maximum number of requests that the spawned application may process
0
* before exiting. A value of 0 means unlimited.
0
- unsigned
int maxRequests;
0
+ unsigned
long maxRequests;
0
* Creates a new SpawnOptions object with the default values filled in.
0
@@ -120,8 +122,8 @@ struct SpawnOptions {
0
environment = "production";
0
- frameworkSpawnerTimeout = 0;
0
- appSpawnerTimeout = 0;
0
+ frameworkSpawnerTimeout = -1;
0
+ appSpawnerTimeout = -1;
0
@@ -134,9 +136,9 @@ struct SpawnOptions {
0
const string &environment = "production",
0
const string &spawnMethod = "smart",
0
const string &appType = "rails",
0
- unsigned int frameworkSpawnerTimeout = 0,
0
- unsigned int appSpawnerTimeout = 0,
0
- unsigned int maxRequests = 0) {
0
+ long frameworkSpawnerTimeout = -1,
0
+ long appSpawnerTimeout = -1,
0
+ unsigned long maxRequests = 0) {
0
this->appRoot = appRoot;
0
this->lowerPrivilege = lowerPrivilege;
0
this->lowestUser = lowestUser;
0
@@ -174,9 +176,9 @@ struct SpawnOptions {
0
environment = vec[startIndex + 7];
0
spawnMethod = vec[startIndex + 9];
0
appType = vec[startIndex + 11];
0
- frameworkSpawnerTimeout = atoi(vec[startIndex + 13]);
0
- appSpawnerTimeout = atoi(vec[startIndex + 15]);
0
- maxRequests = atoi(vec[startIndex + 17]);
0
+ frameworkSpawnerTimeout = atol(vec[startIndex + 13]);
0
+ appSpawnerTimeout = atol(vec[startIndex + 15]);
0
+ maxRequests = atol(vec[startIndex + 17]);
0
@@ -196,7 +198,7 @@ struct SpawnOptions {
0
appendKeyValue (vec, "app_type", appType);
0
appendKeyValue2(vec, "framework_spawner_timeout", frameworkSpawnerTimeout);
0
appendKeyValue2(vec, "app_spawner_timeout", appSpawnerTimeout);
0
- appendKeyValue
2(vec, "max_requests", 0);
0
+ appendKeyValue
3(vec, "max_requests", 0);
0
@@ -213,7 +215,13 @@ private:
0
- appendKeyValue2(vector<string> &vec, const char *key, unsigned int value) {
0
+ appendKeyValue2(vector<string> &vec, const char *key, long value) {
0
+ vec.push_back(toString(value));
0
+ appendKeyValue3(vector<string> &vec, const char *key, unsigned long value) {
0
vec.push_back(toString(value));
Comments
No one has commented yet.