fixing really shitty bug in check-socket-open, was causing all sorts of TCP pandemonium. wish id caught this earlier. not sure how it snuck in.
merging in master fix