geforkt von Mirrors/Velocity
Add flag to disable native transports
Dieser Commit ist enthalten in:
Ursprung
5d37a7f96e
Commit
454b3c9bee
@ -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 {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren