Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP 102 Processing filter for Java

Tags:

java

http

jetty

I have a web application based on a Jetty server. My problem is that I have some long running requests which can take up to a few minutes. Some of my clients do have a connection-timeout of some seconds though. So I though I could serve them with 102 PROCESSING responses to prevent the connection timeout.

I haven't found any sources or examples though on the internet, which makes me wonder if this is the right approach. I am for sure not the first persons trying to solve this problem :)

So anybody has a suggestion for making this work in Jetty? Maybe using Continuations? Or is there a hidden configuration option?

cheers Philipp

like image 677
smigfu Avatar asked Dec 13 '25 06:12

smigfu


1 Answers

I've been thinking to use code 102 for the same purposes as you.

But it appears that HTTP response code 102 was never part of HTTP spec itself, but instead it was defined for WebDAV extensions. See answers to this question. So I doubt that there is any reasonable support for this response code in HTTP clients and servers.

like image 104
vadipp Avatar answered Dec 14 '25 19:12

vadipp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!