I am implementing UrlyBird 1.2.2 using sockets. From time to time when I create a connection to my server the call gets lock and the appliction is stuck at that point. I create a new Socket for each connection and close both output and input streams then close the socket after I am done. I also create the ObjectOutputStream before I create the input stream.
I am using Java 6 and I ran jconsole and there were no deadlocks, just the input stream is locked. I did googled it and found it to be not uncommon, but no real reason why or how to prevent it.
I have placed a call at the bottom of the loop my server is running and this seems to help, but I would like to know what causes this and how to prevent this. Any suggestions?
Yes it does. I actully read this doing my research of the problem. I follow the procedures outlined, but I still get the problem. Should I just reference this issue in my documentation and move on? I would like to try and overcome this situation
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads