# HG changeset patch # User Kim Alvefur # Date 1618007144 -7200 # Node ID c729365f109182e2948c31dabfa49d8271f15aa1 # Parent 5398623682d7c6dd8c0115ec6597a9f449d23278 clix.raw: Handle (ignore, successfully) read timeouts on stdin So that net.server doesn't get upset if you're not typing something regularly. diff -r 5398623682d7 -r c729365f1091 clix/raw.lua --- a/clix/raw.lua Sat Apr 10 00:25:20 2021 +0200 +++ b/clix/raw.lua Sat Apr 10 00:25:44 2021 +0200 @@ -108,7 +108,7 @@ end end stdin = require "net.server".wrapclient(stdin, "stdin", 0, { - onincoming = on_incoming, ondisconnect = function () conn:close() end, + onincoming = on_incoming, ondisconnect = function () conn:close() end, onreadtimeout = function () return true; end }, "*l"); else if not send_xml then