# HG changeset patch # User Matthew Wild # Date 1259867898 0 # Node ID 5ddbb9c89ffe9aed5b2a0775d21272f9f02b7c92 # Parent 5fe837ebe542034d6b0751e45dc5673395310fe3 net.server_select: Restore checks for wantread/timeout errors on receive diff -r 5fe837ebe542 -r 5ddbb9c89ffe net/server_select.lua --- a/net/server_select.lua Thu Dec 03 17:07:37 2009 +0100 +++ b/net/server_select.lua Thu Dec 03 19:18:18 2009 +0000 @@ -474,7 +474,7 @@ end local _readbuffer = function( ) -- this function reads data local buffer, err, part = receive( socket, pattern ) -- receive buffer with "pattern" - if not err or string_len(part) > 0 then -- received something + if not err or (err == "wantread" or err == "timeout") or string_len(part) > 0 then -- received something local buffer = buffer or part or "" local len = string_len( buffer ) if len > maxreadlen then