Skip to content

Commit

Permalink
Remove backpressure from IPv4 ping responder
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed Jul 31, 2017
1 parent 00ba26d commit 0995226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/lwaftr/ipv4_apps.lua
Expand Up @@ -55,7 +55,7 @@ function Reassembler:push ()
local input, output = self.input.input, self.output.output
local errors = self.output.errors

for _ = 1, math.min(link.nreadable(input), link.nwritable(output)) do
for _ = 1, link.nreadable(input) do
local pkt = receive(input)
if is_ipv4_fragment(pkt) then
counter.add(self.counters["in-ipv4-frag-needs-reassembly"])
Expand Down

0 comments on commit 0995226

Please sign in to comment.