diff --git a/ncat/scripts/echo.lua b/ncat/scripts/echo.lua index 48b71749e..3bfea90d0 100644 --- a/ncat/scripts/echo.lua +++ b/ncat/scripts/echo.lua @@ -2,7 +2,9 @@ while true do - data = io.stdin:read(512) + --We're reading in 1-byte chunks because calls like io.stdin:read(512) would + --wait for full 512 bytes of data before continuing. + data = io.stdin:read(1) if data == nil then break