101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

523
active users

#jetty

3 posts3 participants0 posts today

I was experimenting with #Java application that combines an embedded #Jetty webserver and webpages that get modified with #htmx through #REST #API and #WebSocket. I found it pretty hard to understand how to configure Jetty. Still, as always with Java libraries, it's pretty easy once you understand how to do it 😉

You can find a video code-walk-through here:
youtube.com/watch?v=ko-tIacI-u

And the full explanation on my blog:
webtechie.be/post/2024-03-28-j

Continued thread

#NGINX and other #HTTP servers will throw a fit if a client sends 1000 requests, and literally tell the client to go away. In the #java programming language, the #HttpClient built into the #jdk throws an IOException, without any further specialization. The #Jetty client for HTTP/2 does throw a specific error and also indicates the lost frame ID, for easy resumes. I guess we could switch clients, or I could find a nice way to catch this error and resume communications. Any suggestions?