diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-01-29 09:14:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-29 09:14:49 +0200 |
| commit | 67725010ff127b7564415fe6370374d0486ca31e (patch) | |
| tree | 3bfff34007de268c71a895e3b00e123b97ad58a0 /lib/buffer.c | |
| parent | 79ea62839faf16a2de4ab366d7d6b340f68e58ee (diff) | |
| parent | 153bdb3d03542530ed1deccbefc716cb4b699a67 (diff) | |
Merge pull request #7974 from donaldsharp/more_if_zero
More if zero
Diffstat (limited to 'lib/buffer.c')
| -rw-r--r-- | lib/buffer.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/buffer.c b/lib/buffer.c index 459d98e75d..42796faae8 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -468,16 +468,6 @@ buffer_status_t buffer_write(struct buffer *b, int fd, const void *p, { ssize_t nbytes; -#if 0 - /* - * Should we attempt to drain any previously buffered data? - * This could help reduce latency in pushing out the data if - * we are stuck in a long-running thread that is preventing - * the main select loop from calling the flush thread... - */ - if (b->head && (buffer_flush_available(b, fd) == BUFFER_ERROR)) - return BUFFER_ERROR; -#endif if (b->head) /* Buffer is not empty, so do not attempt to write the new data. */ |
