Attempt to read from idled socket in test.

This is better than checking the process state, which was the
workaround we were using for the fact that port_info refused to
consider the socket closed.