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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:535:    }       return 0;   }      //! Queues a packet for write. Handshake and and change cipher   //! must use the same priority, so must application data and   //! close_notifies.   void send_packet(Packet packet, int|void priority)   { -  if (state & CONNECTION_local_closing) { -  SSL3_DEBUG_MSG("SSL.Connection->send_packet: ignoring packet after close\n"); +  if (state & (CONNECTION_local_closed | CONNECTION_local_failing)) { +  SSL3_DEBUG_MSG("send_packet: Ignoring packet after close/fail.\n");    return;    }       if (packet->content_type == PACKET_alert) {    if (packet->level == ALERT_fatal) {    state = [int(0..0)|ConnectionState](state | CONNECTION_local_failing);    } else if (packet->description == ALERT_close_notify) {    state = [int(0..0)|ConnectionState](state | CONNECTION_local_closing);    }    }