AbstractRequestBodyPublisher.onDataAvailable improvement

When in state DATA_AVAILABLE if there are simultaneous invocations of
AbstractRequestBodyPublisher.RequestBodySubscription.request and
ReadListener.onDataAvailable, the first one will process the available
data, the second one should not throw an exception because thus it will
signal to web container that there are problems while there are not.
This commit is contained in:
Violeta Georgieva
2016-06-30 14:23:18 +03:00
parent 1d48e7c5b9
commit ea18e73803

View File

@@ -251,6 +251,11 @@ abstract class AbstractRequestBodyPublisher implements Publisher<DataBuffer> {
}
}
}
@Override
void onDataAvailable(AbstractRequestBodyPublisher publisher) {
// ignore
}
},
/**
* The terminal completed state. Does not respond to any events.