Repository navigation
Conversation
|
CC @shinseongsu |
arturobernalg
left a comment
There was a problem hiding this comment.
Looks good overall.
One concern: ConfigDefaults.IO_REACTOR changes the default socket timeout from 0 to 3 minutes, including for WebSocket and minimal async clients.
Is this intentional? It changes existing behavior rather than just consolidating defaults.
|
Love this cleanup. Having all the defaults in one place is going to make things so much easier to reason about 🙌 On @arturobernalg's question, I went down the rabbit hole a bit: Classic doesn't actually change. Where it gets interesting is the new SSE client, since event streams can legitimately stay quiet for a long time. I spun up a local server that sends one event and then goes silent (no heartbeat), with No Looks like SSE has an issue here on its own: the timeout surfaces as a For what it's worth, I totally agree 3 minutes is a much saner default than "wait forever" for regular request/response traffic. OkHttp made the same call back in 2.5 ("that was a lousy policy" 😄). But since it's a real behavior change, maybe keep One more small thing: the new default only kicks in when no Nits:
Thanks for the ping, really nice cleanup overall! |
@shinseongsu Damn. I completely overlooked that. We will have to change Now, what shall I do about this change-set? Does it still make any sense? Is there any value in having one class with config defaults if all it does is referencing the @shinseongsu @arturobernalg What do you think? |
@ok2c I would drop it. If ConfigDefaults only aliases the existing defaults, I don’t think the extra indirection adds much value. The async socket timeout is a separate behavioral change and should be handled independently. |
@arturobernalg Please double-check.