Spring Reactive: java.io.IOException: An established connection was aborted by the software in your host machine, when I close the connection
问题 Working with spring reactive application, I created a rest service which produces an event every second. The code for my rest controller is: @GetMapping(value = "/events", produces = MediaType.TEXT_EVENT_STREAM_VALUE) public Flux<Event> getEvents() { Flux<Event> eventFlux = Flux.fromStream(Stream.generate(() -> new Event(new Random().nextLong(), "Hello Event"))); Flux<Long> emmitFlux = Flux.interval(Duration.ofSeconds(1)); return Flux.zip(eventFlux, emmitFlux).map(Tuple2::getT1); } The