Skip to content

NetApp: reuse TLS session, reconnect on failure#308

Open
chuan137 wants to merge 1 commit into
stable/2023.1-m3from
fix/netapp-session-refresh-conn
Open

NetApp: reuse TLS session, reconnect on failure#308
chuan137 wants to merge 1 commit into
stable/2023.1-m3from
fix/netapp-session-refresh-conn

Conversation

@chuan137
Copy link
Copy Markdown
Member

@chuan137 chuan137 commented May 8, 2026

_refresh_conn was never reset to False after _build_session(), causing
every invoke_elem() call to create a new requests.Session() with a full
TCP+TLS handshake (3-4 RTTs) instead of reusing the existing connection
(1 RTT).

Confirmed via py-spy on qa-de-1 (5 concurrent share creations, 60s
flame graph): ssl_wrap_socket dropped from 45% to 33% of samples after
fix.

_refresh_conn was never reset to False after _build_session(), causing
every invoke_elem() call to create a new requests.Session() with a full
TCP+TLS handshake (3-4 RTTs) instead of reusing the existing connection
(1 RTT).

Confirmed via py-spy on qa-de-1 (5 concurrent share creations, 60s
flame graph): ssl_wrap_socket dropped from 45% to 33% of samples after
fix.
@chuan137 chuan137 changed the title netapp: reuse TLS session, reconnect on failure NetApp: reuse TLS session, reconnect on failure May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant