I took a quick look at the implementation and it looks like all Stream#write() calls are used as if they were synchronous, but they are not.
The result is that we close the stream before all writes are done.
Am I correct? Or there is something that I am missing?
I took a quick look at the implementation and it looks like all
Stream#write()calls are used as if they were synchronous, but they are not.The result is that we close the stream before all writes are done.
Am I correct? Or there is something that I am missing?