Added more explicit details on why UDP can fail
This commit is contained in:
parent
d662f5c37c
commit
7b89fc6443
|
@ -80,12 +80,12 @@ class RegistrationWrapper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public
|
public
|
||||||
CryptoSerializationManager getSerializtion() {
|
CryptoSerializationManager getSerialization() {
|
||||||
return endPoint.getSerialization();
|
return endPoint.getSerialization();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The amount of milli-seconds that must elapse with no read or write before {@link Listener:idle()} will be triggered
|
* The amount of milli-seconds that must elapse with no read or write before Listener.OnIdle() will be triggered
|
||||||
*/
|
*/
|
||||||
public
|
public
|
||||||
int getIdleTimeout() {
|
int getIdleTimeout() {
|
||||||
|
|
|
@ -77,7 +77,7 @@ class RegistrationRemoteHandler extends RegistrationHandler {
|
||||||
RegistrationRemoteHandler(final String name, final RegistrationWrapper registrationWrapper, final EventLoopGroup workerEventLoop) {
|
RegistrationRemoteHandler(final String name, final RegistrationWrapper registrationWrapper, final EventLoopGroup workerEventLoop) {
|
||||||
super(name, registrationWrapper, workerEventLoop);
|
super(name, registrationWrapper, workerEventLoop);
|
||||||
|
|
||||||
this.serializationManager = registrationWrapper.getSerializtion();
|
this.serializationManager = registrationWrapper.getSerialization();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -154,7 +154,14 @@ class ReconnectTest extends BaseTest {
|
||||||
if (waitingRetryCount-- < 0) {
|
if (waitingRetryCount-- < 0) {
|
||||||
System.err.println("Aborting unit test... wrong count!");
|
System.err.println("Aborting unit test... wrong count!");
|
||||||
if (useUDP) {
|
if (useUDP) {
|
||||||
System.err.println("NOTE: UDP can fail, even on loopback!");
|
// If TCP and UDP both fill the pipe, THERE WILL BE FRAGMENTATION and dropped UDP packets!
|
||||||
|
// it results in severe UDP packet loss and contention.
|
||||||
|
//
|
||||||
|
// http://www.isoc.org/INET97/proceedings/F3/F3_1.HTM
|
||||||
|
// also, a google search on just "INET97/proceedings/F3/F3_1.HTM" turns up interesting problems.
|
||||||
|
// Usually it's with ISPs.
|
||||||
|
|
||||||
|
System.err.println("NOTE: UDP can fail, even on loopback! See: http://www.isoc.org/INET97/proceedings/F3/F3_1.HTM");
|
||||||
}
|
}
|
||||||
stopEndPoints();
|
stopEndPoints();
|
||||||
assertEquals(target, this.receivedCount.get());
|
assertEquals(target, this.receivedCount.get());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user