MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_extracted_sni_name

Method get_extracted_sni_name

crates/stdlib/src/ssl.rs:2673–2677  ·  view source on GitHub ↗

Get the extracted SNI name from resolver

(&self)

Source from the content-addressed store, hash-verified

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(

Callers 1

do_handshakeMethod · 0.80

Calls 4

cloneMethod · 0.45
readMethod · 0.45
as_refMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected