tests: have rma_register exit if no -s or -h

Also, remove trailing white space
tcp: ignore sputious POLLHUP on new connection

if the connection is valid
Merge branch 'master' into topic/routing