> Setup a POSIX timer or a Windows thread which waits on the timeout. > Then in the timeout handler set the lua hook with a count of 1. That's what my lalarm does: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lalarm