소스 검색

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 년 전
부모
커밋
4cd3d463fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 		}