This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm facing problems with reading the bytes written on a SSLSocket. Following is what I'm doing:
(1) Sending some bytes to a server which has an SSLSocket opened
(2) I'm able to see the bytes that I have sent to the server (printed the log lines on the server)
(3) The server send its response and I'm able to see the response in the server logs
(4) When I try to read that from my client using DataInputStream that I get from my SSLSocket, I get the following error:
Any ideas on how to get around this? I tried by increasing the time out period..... set it to infinite also did not help.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
When I set the timeout parameter (the call to the setSoTimeout() method) as setSoTimeout(0*1000), there seems to be nothing happening... the program is standstill... looks like my client is waiting for reading something on the InputStream written by the server. I'm totally confused and seems like I'm about to hit a dead end.