Set connection deadlines

An attempt to catch network disconnects sooner. I don’t think this will work as-is (at least the read one), but I figured I’d put it into a PR for chewing on.