session: fix blocking bug
delivery: use net.DialTimeout
main: local and server