-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
While I'm playing around with the new reactive features in Spring Boot v2.0.0.BUILD-SNAPSHOT I have noticed that when I multiple time force close the connection to endpoint like this:
@GetMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE, value = "/events")
public Flux<Event> getEvents()
{
return Flux.from(new Publisher<Event>() {
@Override
public void subscribe(Subscriber<? super Event> subscriber) {
while (true) {
try {
new Thread().sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
subscriber.onNext(new Event(1, new Date()));
}
}
});
}
Spring throws: "reactor.core.Exceptions$BubblingException: reactor.core.Exceptions$OverflowException: Queue is full?!" and after that when I call the endpoint again it freeze. Here I've created a repo https://github.com/georgi-staykov/reactive-demo where you can find example code and video that shows the bug.
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid