Browse Source

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

bel 8 years ago
parent
commit
f5ea8a5ee8
1 changed files with 1 additions and 1 deletions
  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();
 			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
 	(void)err; /* Avoid unused warning if NO_SSL is set and DEBUG_TRACE is not
 	              used */
 	              used */