This discussion is archived
2 Replies Latest reply: May 27, 2013 2:49 AM by Murray9654 RSS

Why is ssl handshake happening when obtaining outputstream from socket?

Murray9654 Newbie
Currently Being Moderated
Hi The SSL hand shake has to happen when the ssl server socket returns the socket, I mean on "accept()" method or it has to happen on first I/O. But why is it happening when obtaining "socket.getOutputStream()"? Even before i write something to "outputStream" the hand shake is happening. What is the reason for it?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points