-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't load netty-transport-native classes when native lib isn't avail…
…able (#1539) Motivation: 1. Do not try to load native libraries when it's known that OS does not support it. 2. Log when OS supports native transport, but native lib cannot be loaded. 3. Prevent class loading of any classes related to native transport when it's not available. Modifications: - Enhance `NativeTransportUtils` to protect class loading when it's known that OS does not support a specific type of transport; - Log when native transport can not be loaded; Result: 1. Less unused classes are loaded in memory. 2. Users are notified when native transport can be used but is not loaded properly.
- Loading branch information
1 parent
63f30f0
commit c525813
Showing
3 changed files
with
110 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters