Commit Diff
- Commit:
c49949008724c8b97419c7a87804f6496d485edc- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Via:
- Omar Polo <op@noreply.codeberg.org>
- Date:
- Message:
- parser_serialize: fflush() If the amount of data being written to the FILE pointer ends up being a lot, it's worth fflush()ing on it here, rather then relying on specific callers to do so. This can happen if telescope is fetching HTML content from an HTTP proxy, for example. This helps to improve writes to disk, especially via the write-buffer command.
- Actions:
- Patch | Tree
--- parser.c +++ parser.c @@ -127,6 +127,7 @@ parser_serialize(struct buffer *b, FILE *fp) if (r == -1) return 0; } + fflush(fp); return 1; }
