replace read_some with read.
fix server side bug (length prefix).