K
kartik
The ObjectInputStream constructor blocks till it reads a header from
the underlying input stream. This can cause deadlocks when you have a
pair of object streams communicating over sockets (it has happened to
me). Does anybody know why it may have been coded this way instead of
reading the header on the first call to readObject()?
-kartik
the underlying input stream. This can cause deadlocks when you have a
pair of object streams communicating over sockets (it has happened to
me). Does anybody know why it may have been coded this way instead of
reading the header on the first call to readObject()?
-kartik