| 237 | } |
| 238 | |
| 239 | void ProtocolV2::reset_security() { |
| 240 | ldout(cct, 5) << __func__ << dendl; |
| 241 | |
| 242 | auth_meta.reset(new AuthConnectionMeta); |
| 243 | session_stream_handlers.rx.reset(nullptr); |
| 244 | session_stream_handlers.tx.reset(nullptr); |
| 245 | pre_auth.rxbuf.clear(); |
| 246 | pre_auth.txbuf.clear(); |
| 247 | } |
| 248 | |
| 249 | // it's expected the `write_lock` is held while calling this method. |
| 250 | void ProtocolV2::reset_recv_state() { |