Branch: Tag:

2015-03-31

2015-03-31 04:40:03 by Martin Nilsson <nilsson@opera.com>

Small optimization. Don't serialize chiper change packages for TLS 1.3, since they are not sent.

645:    state = [int(0..0)|ConnectionState](state | CONNECTION_local_closed);    }    } -  string res = current_write_state->encrypt_packet(packet, context)->send(); +  packet = current_write_state->encrypt_packet(packet, context);    if (packet->content_type == PACKET_change_cipher_spec) {    if (sizeof(pending_write_state)) {    current_write_state = pending_write_state[0];
658:    return to_write();    }    } -  return res; +  +  return packet->send();   }      //! Initiate close.