• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSLSocket Read timed out issue

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

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.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic