[undertow-dev] ClosedChannelException

Stuart Douglas sdouglas at redhat.com
Wed Apr 12 19:16:58 EDT 2017


Maybe cloudflare is rejecting some of the websocket upgrades?

Stuart

On Thu, Apr 13, 2017 at 9:04 AM, Hicks, Matt <matt at matthicks.com> wrote:
> Well, I seem to have narrowed down the cause to CloudFlare.  If I pause
> CloudFlare then it stops happening.  The connection is incredibly stable and
> was happening consistently.
>
> On Wed, Apr 12, 2017 at 5:26 PM Stuart Douglas <sdouglas at redhat.com> wrote:
>>
>> I am guessing you are using the websocket client? This would be the
>> exception you get if the connection failed. I don't think Undertow
>> does any logging, so you must be logging this at the ERROR level.
>>
>> As to why it is failing it is hard to say. How good is the network
>> between the client and the target server, and how often is a lot?
>>
>> Also what version were you using before 1.4.12.Final?
>>
>> Stuart
>>
>> On Thu, Apr 13, 2017 at 12:15 AM, Hicks, Matt <matt at matthicks.com> wrote:
>> > I seem to be experiencing a lot of:
>> >
>> > [XNIO-1 task-40] ERROR i.y.E.defaultHandler.???:23 -
>> > java.nio.channels.ClosedChannelException
>> >     at io.undertow.protocols.ssl.SslConduit.write(SslConduit.java:369)
>> >     at
>> >
>> > org.xnio.conduits.ConduitStreamSinkChannel.write(ConduitStreamSinkChannel.java:150)
>> >     at
>> >
>> > org.xnio.http.HttpUpgrade$HttpUpgradeState$StringWriteListener.handleEvent(HttpUpgrade.java:385)
>> >     at
>> >
>> > org.xnio.http.HttpUpgrade$HttpUpgradeState$StringWriteListener.handleEvent(HttpUpgrade.java:372)
>> >     at
>> >
>> > org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
>> >     at
>> >
>> > org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65)
>> >     at
>> >
>> > io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1225)
>> >     at io.undertow.protocols.ssl.SslConduit$3.run(SslConduit.java:275)
>> >     at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:580)
>> >     at org.xnio.nio.WorkerThread.run(WorkerThread.java:464)
>> >
>> > I'm not positive this is connected to my update to 1.4.12.Final, but I
>> > wanted to check to see if this is something anyone else is seeing?  It's
>> > likely it's related to my code, although I have no idea what I would
>> > have
>> > changed to cause this.
>> >
>> > _______________________________________________
>> > undertow-dev mailing list
>> > undertow-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/undertow-dev


More information about the undertow-dev mailing list