remove unused static var
use rid instead of fd to identify connection
remove the break left by old switch..case; clear to_resume_actions after
using them.
apply rid changes, fixing cpu 100% on epoll