On Thu, 6 Jul 2023 21:40:38 GMT, Brian Burkhalter <b...@openjdk.org> wrote:

> Add a disclaimer to `java.io.DataOutputStream` to the effect that it makes no 
> guarantee as to how the underlying output stream actually writes the bytes 
> provided to it.

> This issue is reported against JDK 8 and 9. It was fixed in 16 with 
> [17f04fc](https://github.com/openjdk/jdk/commit/17f04fc9e755a83727ac9d13a39b487f99311efd).
>  I think you can close it as duplicate.

Thanks. I saw that change go by but did not connect the dots. Was it actually 
verified that things are not split up into two or more packets? It seems that 
`write(2)` could in fact return a value less than the number of bytes requested.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14791#issuecomment-1625582230

Reply via email to