This is the fix:

socket.write("HELO " + session + "\r\n")

Thanks :D

-- 
Posted via http://www.ruby-forum.com/.