Skip to content

Commit 3065cdf

Browse files
committed
Relay forward packets after unwinding stack
1 parent 7b0b5a7 commit 3065cdf

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/main/network/relay/mod.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,9 @@ impl Relay {
121121
#[allow(dead_code)]
122122
match state {
123123
RelayState::Idle => {
124-
// FIXME: For now we emulate the old C forwarding code, which
125-
// immediately forwarded one packet at a time as soon as one is
126-
// available. We should delete the forward_now call and swap to
127-
// forward_later intead, which lets packets accumulate and
128-
// unwinds the stack to forward them, once we better understand
129-
// its effect on performance.
130-
self.forward_now(host);
131-
// self.forward_later(SimulationTime::ZERO, host);
124+
// Allow packets to accumulate and unwind the stack to forward
125+
// them.
126+
self.forward_later(SimulationTime::ZERO, host);
132127
}
133128
RelayState::Pending => {
134129
log::trace!("Relay forward task already scheduled; skipping forward request.");

0 commit comments

Comments
 (0)