소스 검색

Fix error in timeout handling for writing larger files (may be related to #422)

bel 8 년 전
부모
커밋
f5ea8a5ee8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -4880,7 +4880,7 @@ push(struct mg_context *ctx,
 			now = mg_get_current_time_ns();
 		}
 
-	} while ((timeout <= 0) || ((start - now) <= timeout_ns));
+	} while ((timeout <= 0) || ((now - start) <= timeout_ns));
 
 	(void)err; /* Avoid unused warning if NO_SSL is set and DEBUG_TRACE is not
 	              used */