Add flag to disable native transports
This commit is contained in:
@@ -56,6 +56,10 @@ enum TransportType {
|
||||
}
|
||||
|
||||
public static TransportType bestType() {
|
||||
if (Boolean.getBoolean("velocity.disable-native-transport")) {
|
||||
return NIO;
|
||||
}
|
||||
|
||||
if (Epoll.isAvailable()) {
|
||||
return EPOLL;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user