Browse Source
Holding sslHandler as a final field kept SSLEngine and its JNI-allocated DirectByteBuffers alive for the full session lifetime. On rapid reconnect loops this caused linear native memory growth, eventually hitting OOM. Null the reference at the end of onValidateDeviceResponse() so SslHandler becomes eligible for Young GC immediately after authentication completes. Add boolean ssl flag to preserve isSSL semantics after the field is cleared.pull/15743/head
1 changed files with 4 additions and 1 deletions
Loading…
Reference in new issue