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.
master
Violeta Georgieva 8 years ago
parent 1d48e7c5b9
commit ea18e73803
  1. 5
      spring-web-reactive/src/main/java/org/springframework/http/server/reactive/AbstractRequestBodyPublisher.java

@ -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. * The terminal completed state. Does not respond to any events.

Loading…
Cancel
Save