Explorar o código

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

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
f5ea8a5ee8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 */