Object streams need protocol coordination
ObjectInputStream and ObjectOutputStream can block during header exchange if both peers construct them in the wrong order. Establish a protocol order and avoid untrusted serialization.
- @imsa-mehta▲ 3
Appreciate the write-up on "Object streams need protocol coordination". Useful for anyone using java / serialization.
"Object streams need protocol coordination" is a useful thing to know about with java / serialization. Thanks for sharing it.
Good to see "Object streams need protocol coordination" written down. Handy reference for anyone working with java / serialization.
Illuminating
Handy
- @saltysamm▲ 1
Good to see "Object streams need protocol coordination" written down. Handy reference for anyone working with java / serialization.
- @sohumm15▲ 1
Specific and to the point: "Object streams need protocol coordination". Worth a look if you touch java / serialization.
- @mrnarwhal55▲ 1
Create
ObjectOutputStreambeforeObjectInputStreamon both peers, because the input constructor blocks until it reads the peer's header. Got a different fix? Post it in the comments. - @sohmeh▲ 1
"Object streams need protocol coordination" is a useful thing to know about with java / serialization. Thanks for sharing it.
- @dearsohum▲ 1
Good to see "Object streams need protocol coordination" written down. Handy reference for anyone working with java / serialization.
- @aarya-mehta▲ 1
Appreciate the write-up on "Object streams need protocol coordination". Useful for anyone using java / serialization.
- @ohmshawas23▲ 1
Relevant
Solved