lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


this issue must have been too difficult, or much too simple...

I guess the latter. I could solve (or bypass) the problem by commenting the lines containing the repeat, the until.. and the return ret, err out and set a return 1 instead:

function copas.connect(skt, host, port)
  skt:settimeout(0)
  local ret, err
--  repeat
    ret, err = skt:connect (host, port)
    if ret or err ~= "timeout" then
      _writing_log[skt] = nil
      return ret, err
    end
    _writing_log[skt] = gettime()
    coroutine.yield(skt, _writing)
--  until false
--  return ret, err
    return 1
end


Now it works.
I tell it just in case someone listens to my soliloquy ;-)

--
Oliver