GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Decrease Long allocations and map.put calls in ReferenceCountedOpenSl… · netty/netty@b880fed

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • handler/src/main/java/io/netty/handler/ssl
    • ReferenceCountedOpenSslEngine.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java‎

Copy file name to clipboardExpand all lines: handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,9 @@ public List<byte[]> getStatusResponses() {
419419
// object so we need to retain a reference to the parent context.
420420
parentContext = context;
421421

422+
// Adding the OpenSslEngine to the OpenSslEngineMap so it can be used in the AbstractCertificateVerifier.
423+
engines.put(ssl, this);
424+
422425
// Only create the leak after everything else was executed and so ensure we don't produce a false-positive for
423426
// the ResourceLeakDetector.
424427
leak = leakDetection ? leakDetector.track(this) : null;
@@ -1968,9 +1971,6 @@ private SSLEngineResult.HandshakeStatus handshake() throws SSLException {
19681971
return handshakeException();
19691972
}
19701973

1971-
// Adding the OpenSslEngine to the OpenSslEngineMap so it can be used in the AbstractCertificateVerifier.
1972-
engines.put(sslPointer(), this);
1973-
19741974
if (!sessionSet) {
19751975
if (!parentContext.sessionContext().setSessionFromCache(ssl, session, getPeerHost(), getPeerPort())) {
19761976
// The session was not reused via the cache. Call prepareHandshake() to ensure we remove all previous

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.