pike.git / lib / modules / SSL.pmod / Connection.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:792:   //! @item   //! The peer has sent an unsupported/illegal sequence of   //! packets, in which case a suitable @[Alert] will have been   //! generated and queued for sending to the peer.   //! @endul   //! @endmixed   //!   //! This function is intended to be called from an i/o read callback.   string(8bit)|int got_data(string(8bit) data)   { -  if (state & CONNECTION_peer_closed) { -  // The peer has closed the connection. +  if (state & (CONNECTION_peer_closed|CONNECTION_local_fatal)) { +  // The peer has closed the connection, or we sent a fatal.    return 1;    }    // If closing we continue to try to read a remote close message.    // That enables the caller to check for a clean close, and    // to get the leftovers after the SSL connection.       /* If alert_callback is called, this data is passed as an argument */    string(8bit) alert_context = (left_over || "") + data;       string(8bit) res = "";