Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EofException during flush #5318

Closed
ChaitanyaKiranPVN opened this issue Sep 23, 2020 · 3 comments
Closed

EofException during flush #5318

ChaitanyaKiranPVN opened this issue Sep 23, 2020 · 3 comments
Labels
Question Stale For auto-closed stale issues and pull requests

Comments

@ChaitanyaKiranPVN
Copy link

Jetty version
Jetty version 9.4.5
Java version
jdk1.8
Question
Recently iam getting the below issue in the Prod Enviornment

org.eclipse.jetty.io.EofException
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:292)
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429)
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:384)
at org.eclipse.jetty.io.ChannelEndPoint$3.run(ChannelEndPoint.java:139)
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:51)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270)
... 10 more
if i received this error then my server load is increased and the web requests are slow . once i restarted the server then the application is working fine.
Please let me know what could be the issue and provide the solution .
Thanks
Chaitanya Kiran PVN

@sbordet
Copy link
Contributor

sbordet commented Sep 23, 2020

The stack trace shows that your server was writing to an connection that was TCP congested, and when it resumed writing the connection was closed by the client.

The exception is reported to the application that failed to write, so it has the chance to do something.
If the application lets the exception to flow out, Jetty by default will log it at DEBUG level.

@joakime
Copy link
Contributor

joakime commented Sep 23, 2020

Jetty version 9.4.5

You should upgrade, you are subject to several Security issues with that version of Jetty.

See: https://www.eclipse.org/jetty/security-reports.html

@joakime joakime changed the title EofException EofException during flush Sep 23, 2020
@github-actions
Copy link

This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.

@github-actions github-actions bot added the Stale For auto-closed stale issues and pull requests label Dec 20, 2021
@joakime joakime closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Stale For auto-closed stale issues and pull requests
Projects
None yet
Development

No branches or pull requests

3 participants