| Author |
How can Socket.getInputStream() block
|
Naveen Sampra
Ranch Hand
Joined: Jun 11, 2003
Posts: 70
|
|
Hi All, I am trying to find an answer to the following weird condition. I have written Dispatcher class that accepts client requests and forwards them to appropriate server instances. There are 3 server instances. The code is some what as follows However the program just hangs while trying to do s.getInputStream() above. The server is running and exeuctes fine. Why does the program block at [ April 22, 2005: Message edited by: Naveen Sampra ]
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8263
|
|
Java Object Serialization Specification
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Naveen Sampra
Ranch Hand
Joined: Jun 11, 2003
Posts: 70
|
|
Thanks for your input. I'm really perplexed with this problem. In my code above as suggested in the quote, ObjectOutputStream is created "before" the ObjectInputStream. So why does ObjectInputStream still block ?
|
 |
 |
|
|
subject: How can Socket.getInputStream() block
|
|
|