MCPcopy Index your code
hub / github.com/RsyncProject/rsync / maybe_flush_socket

Function maybe_flush_socket

io.c:1439–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439void maybe_flush_socket(int important)
1440{
1441 if (flist_eof && iobuf.out.buf && iobuf.out.len > iobuf.out_empty_len
1442 && (important || time(NULL) - last_io_out >= 5))
1443 io_flush(NORMAL_FLUSH);
1444}
1445
1446/* Older rsync versions used to send either a MSG_NOOP (protocol 30) or a
1447 * raw-data-based keep-alive (protocol 29), both of which implied forwarding of

Callers 3

touch_up_dirsFunction · 0.85
check_for_finished_filesFunction · 0.85
generate_filesFunction · 0.85

Calls 1

io_flushFunction · 0.85

Tested by

no test coverage detected