Get the extracted SNI name from resolver
(&self)
| 2671 | |
| 2672 | /// Get the extracted SNI name from resolver |
| 2673 | pub(crate) fn get_extracted_sni_name(&self) -> Option<String> { |
| 2674 | // Clone the Arc option to avoid nested lock (sni_state.read -> arc.lock) |
| 2675 | let sni_state_opt = self.sni_state.read().clone(); |
| 2676 | sni_state_opt.as_ref().and_then(|arc| arc.lock().1.clone()) |
| 2677 | } |
| 2678 | |
| 2679 | /// Invoke the Python SNI callback |
| 2680 | pub(crate) fn invoke_sni_callback( |
no test coverage detected