Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
4cd3d463fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}