소스 검색

Document limitation of log_from_handle with partial reads

Steven Murdoch 14 년 전
부모
커밋
d1dd9991cd
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/common/util.c

+ 3 - 0
src/common/util.c

@@ -3654,6 +3654,9 @@ tor_split_lines(smartlist_t *sl, char *buf, int len)
 #ifdef MS_WINDOWS
 /** Read from stream, and send lines to log at the specified log level.
  * Returns -1 if there is a error reading, and 0 otherwise.
+ * If the generated stream is flushed more often than on new lines, or
+ * a read exceeds 256 bytes, lines will be truncated. This should be fixed,
+ * along with the corresponding problem on *nix (see bug #2045).
  */
 static int
 log_from_handle(HANDLE *pipe, int severity)