Browse Source

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

5
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/AbstractRequestBodyPublisher.java

@ -251,6 +251,11 @@ abstract class AbstractRequestBodyPublisher implements Publisher<DataBuffer> { @@ -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.

Loading…
Cancel
Save