Displaying 1 result from an estimated 1 matches for "net_quench".
2005 Mar 21
4
Patch: Offline transfer mode
...It was harder than it could have been;
because the entire protocol goes through write_fd(), I couldn't just
shut off all traffic there, but instead had to redirect unwanted traffic
to /dev/null higher up, in send_files(). A more graceful way, I think,
might have been to create a global (say, net_quench) which is set from
send_files() and read from write_fd(), to toggle traffic on and off
depending on context. I also had to handle deleted files correctly, but
that was just a simple addition to do_unlink() and server_options().
This patch is against 2.6.3, but I just now checked CVS HEAD, and I...