--Skip random input lines, to test recv() returning nil. return { recv = function (self) if math.random() > 0.5 then self.super:recv() end local line, err = self.super:recv() if line == nil then return line, err end return line end, }