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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: jaxrs
    • Labels:
      None

      Description

      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)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jim.ma Jim Ma
                  Reporter:
                  rsvoboda Rostislav Svoboda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: