Browse Source

Allow infinite timeouts (config value 0)

Timeouts can be deactivated by setting the config values for
request_timeout_ms and websocket_timeout_ms to 0.
bel2125 10 years ago
parent
commit
4cd3d463fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -340,7 +340,7 @@ static int set_option(char **options, const char *name, const char *value)
 		return 0;
 	case CONFIG_TYPE_NUMBER:
 		/* integer number > 0, e.g. number of threads */
-		if (atol(value) < 1) {
+		if (atol(value) < 0) {
 			/* invalid number */
 			return 0;
 		}