… | |
… | |
57 | client::flush () |
57 | client::flush () |
58 | { |
58 | { |
59 | if (destroyed ()) |
59 | if (destroyed ()) |
60 | return; |
60 | return; |
61 | |
61 | |
62 | #ifdef __linux__ |
62 | #ifdef __linux__ //TODO: this is available on bsds, too, use a configure test. |
63 | // check about once per second, spread evenly over all clients |
63 | // check about once per second, spread evenly over all clients |
64 | if (!((pticks + fd) & 7)) |
64 | if (!((pticks + fd) & 7)) |
65 | { |
65 | { |
66 | // check time of last ack, and, if too old, kill connection |
66 | // check time of last ack, and, if too old, kill connection |
67 | struct tcp_info tcpi; |
67 | struct tcp_info tcpi; |