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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Connection.pike:385:    }    else /* Partial packet read, or error */    left_over = 0;       return [object]res;   }      //! 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(object packet, int|void priority) + void send_packet(Packet packet, int|void priority)   {    if (closing & 1) {    SSL3_DEBUG_MSG("SSL.connection->send_packet: ignoring packet after close\n");    return;    }       if (packet->content_type == PACKET_alert &&    packet->description == ALERT_close_notify)    closing |= 1;       if (!priority)    priority = ([ PACKET_alert : PRI_alert,    PACKET_change_cipher_spec : PRI_urgent,    PACKET_handshake : PRI_urgent,    PACKET_heartbeat : PRI_urgent,    PACKET_application_data : PRI_application ])[packet->content_type]; -  SSL3_DEBUG_MSG("SSL.connection->send_packet: type %d, desc %d, pri %d, %O\n", -  packet->content_type, packet->description, priority, -  packet->fragment[..5]); +  SSL3_DEBUG_MSG("SSL.connection->send_packet: type %d, pri %d, %O\n", +  packet->content_type, priority, packet->fragment[..5]);    switch (priority)    {    default:    error( "Internal error\n" );    case PRI_alert:    alert_q->put(packet);    break;    case PRI_urgent:    urgent_q->put(packet);    break;