Add flag to disable native transports

This commit is contained in:
Andrew Steinborn
2019-07-12 14:32:37 -04:00
parent 5d37a7f96e
commit 454b3c9bee

View File

@@ -56,6 +56,10 @@ enum TransportType {
} }
public static TransportType bestType() { public static TransportType bestType() {
if (Boolean.getBoolean("velocity.disable-native-transport")) {
return NIO;
}
if (Epoll.isAvailable()) { if (Epoll.isAvailable()) {
return EPOLL; return EPOLL;
} else { } else {