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

Method is_first_sni_read

crates/stdlib/src/ssl.rs:2657–2659  ·  view source on GitHub ↗

Check if this is the first read during handshake (for SNI callback) Returns true if we haven't processed ClientHello yet, regardless of SNI presence

(&self)

Source from the content-addressed store, hash-verified

2655 /// Check if this is the first read during handshake (for SNI callback)
2656 /// Returns true if we haven't processed ClientHello yet, regardless of SNI presence
2657 pub(crate) fn is_first_sni_read(&self) -> bool {
2658 self.client_hello_buffer.lock().is_none()
2659 }
2660
2661 /// Check if SNI callback is configured
2662 pub(crate) fn has_sni_callback(&self) -> bool {

Callers 1

handshake_read_dataFunction · 0.80

Calls 2

is_noneMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected