title: Webflux streaming Nginx exception
body: <p>I have Spring Cloud SSE #webflux streaming service, and my front connect with it via Nginx. Some times I have this:</p>
  
  <pre><code>Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
   the server responded with a status of 504 (Gateway Timeout)
  </code></pre>
  
  <p>Event source with retry again reconnect and it works.</p>
  
  <p>Front code looks like this</p>
  
  <pre><code>this.source = new EventSource("/comment/stream", { });
  
  this.source.addEventListener("message", function (event) 
  </code></pre>
  
  <p>backend side </p>
  
  <pre><code> @GetMapping(path = "/comment/stream", produces = MediaType.TEXT_EVENT_STREAM_VALUE)
      public Flux&lt;Comment&gt; feed() {
  
          return this.commentRepository.findAll();
      }
  </code></pre>
  
  <p>Configuring netty with timeout does not help. </p>