Please sign in to comment.
Use readFully() instead of read() for reading in DefaultPDUReader.rea…
…dPDU(). Under some network conditions, it is possible for the code to receive a partial package over the socket and erronously throw an IOException for the socket. The specs for read() don't guarantee that the full requested length is read in one call. Using readFully() fixes that problem.
- Loading branch information...
Showing with 7 additions and 15 deletions.