Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1743

SSE - Error log for java.io.IOException: Broken pipe when Ctrl+C curl command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Beta1, 3.5.0.CR1
    • None
    • jaxrs
    • None

      Using WF 10.1 + RESTEasy master 442e6fa8a - (HEAD -> master, upstream/master, origin/master, origin/HEAD) RESTEASY-1738 (4 days ago) <Ron Sigal>

      Testing project is https://github.com/rsvoboda/rsvoboda-playground/tree/master/ee8-sample-sse.

      Steps to reproduce:

      14:57:18,019 ERROR [org.jboss.resteasy.resteasy_jaxrs.i18n] (ForkJoinPool.commonPool-worker-0) RESTEASY002030: Failed to write event org.jboss.resteasy.plugins.providers.sse.OutboundSseEventImpl@776005a9: java.io.IOException: Broken pipe
      	at sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
      	at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51)
      	at sun.nio.ch.IOUtil.write(IOUtil.java:148)
      	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504)
      	at org.xnio.nio.NioSocketConduit.write(NioSocketConduit.java:162)
      	at io.undertow.server.protocol.http.HttpResponseConduit.write(HttpResponseConduit.java:639)
      	at io.undertow.conduits.ChunkedStreamSinkConduit.doWrite(ChunkedStreamSinkConduit.java:163)
      	at io.undertow.conduits.ChunkedStreamSinkConduit.write(ChunkedStreamSinkConduit.java:127)
      	at org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150)
      	at io.undertow.channels.DetachableStreamSinkChannel.write(DetachableStreamSinkChannel.java:240)
      	at io.undertow.server.HttpServerExchange$WriteDispatchChannel.write(HttpServerExchange.java:2028)
      	at io.undertow.servlet.spec.ServletOutputStreamImpl.writeBufferBlocking(ServletOutputStreamImpl.java:563)
      	at io.undertow.servlet.spec.ServletOutputStreamImpl.flushInternal(ServletOutputStreamImpl.java:478)
      	at io.undertow.servlet.spec.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:465)
      	at io.undertow.servlet.spec.HttpServletResponseImpl.flushBuffer(HttpServletResponseImpl.java:460)
      	at org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper.flushBuffer(HttpServletResponseWrapper.java:124)
      	at org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.writeEvent(SseEventOutputImpl.java:137)
      	at org.jboss.resteasy.plugins.providers.sse.SseEventOutputImpl.send(SseEventOutputImpl.java:115)
      	at org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$null$2(SseBroadcasterImpl.java:60)
      	at java.lang.Iterable.forEach(Iterable.java:75)
      	at org.jboss.resteasy.plugins.providers.sse.SseBroadcasterImpl.lambda$broadcast$3(SseBroadcasterImpl.java:58)
      	at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626)
      	at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618)
      	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
      	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
      	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      

              rhn-engineering-ema Jim Ma
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: