[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] HttpChannel.java:802 java.io.EOFException: reset
|
Hi,
On Wed, Oct 9, 2024 at 4:00 PM Glen Peterson via jetty-users
<jetty-users@xxxxxxxxxxx> wrote:
>
> This was a bug in my code and not Jetty related.
>
> Details
> I had badly implemented some server polling for lazy-locking code so that if one person changed a file while someone else was editing it, the second person would be notified. Maybe only 2 people have permission to edit these files and actually do so, so I didn't spend a lot of time on it. The server was waiting for changes to a file on its filesystem and the client was sending multiple requests asking if the file changed yet. The client would give up and retry while the server was still waiting for file changes from the previous request. Eventually, the server ran out of threads. This was hard to diagnose because it only happened when someone left a browser window open, editing a file for a few days (or a few windows open on the same file for a few hours). A bunch of other changes went in at the same time as this feature and it took me more than a year to suspect the root cause.
>
Have a look at CometD (https://cometd.org and
https://github.com/cometd/cometd), which is a sister project that we
maintain, so that you don't have to write your own polling.
--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.