فهرست منبع

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 */