https://kotlinlang.org logo
#http4k
Title
# http4k
a

Alexander Weickmann

11/22/2021, 9:01 PM
Hi all, is it possible to somehow configure the socket timeout for the Java8HttpClient? Cannot find it in the docs 😞
s

s4nchez

11/22/2021, 9:06 PM
Currently, there’s no option to configure that directly. It should be easy enough to add though as it seems like those are just parameters to be added to the underlying
HttpURLConnection
.
The easiest option to unblock you is to copy the
Java8HttpClient
implementation (~50 lines of code) and customise for your needs.
a

Alexander Weickmann

11/22/2021, 9:07 PM
Ah I see. Good idea, that helps. Thank you very much 🙂
s

s4nchez

11/22/2021, 9:59 PM
I’ve made it configurable and it should be available in
v4.17.1.0
(being released as we speak)
a

Alexander Weickmann

11/23/2021, 12:32 PM
thanks 🙂