There are two behaviours in SSL that seem to catch out a number of people. The first is the use of close_notify . close_notify is an operation in SSL that terminates the SSL session, providing a definite end to the stream that is being protected. As it...