code: synchronized public void closeInbound() throws SSLException {
          /*
           * Currently closes the outbound side as well.  The IETF TLS
           * working group has expressed the opinion that 1/2 open
           * connections are not allowed by the spec.  May change
           * someday in the future.
           */
          if ((debug != null) && Debug.isOn("ssl")) {
              System.out.println(threadName() + ", called closeInbound()");
          }
  
          /*
           * No need to throw an Exception if we haven't even started yet.
           */
          if ((connectionState != cs_START) && !recvCN) {
              recvCN = true;  // Only receive the Exception once
              fatal(Alerts.alert_internal_error,
                  "Inbound closed before receiving peer's close_notify: " +
                  "possible truncation attack?");
          } else {
              /*
               * Currently, this is a no-op, but in case we change
               * the close inbound code later.
               */
              closeInboundInternal();
          }
      }
docs: /*
  Close the inbound side of the connection.  We grab the
  lock here, and do the real work in the internal verison.
  We do check for truncation attacks.