This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Using the core.async API you can use alts and timeout channels to implement client timeout
Well, I would really like to avoid core.async API. Besides, that doesn't set proper network socket timeouts, which is what I want to do.
I found :timeout-msec
option for HttpClient protocol https://github.com/cognitect-labs/aws-api/blob/1a27e1e466e2f999cdd00d1738426f3d3c68e1e9/src/cognitect/aws/http.clj#L26
Would I need to implement my own http client?
My best guess is that I would have to create my own instance via cognitect.http-client/create
and pass the expected timeouts.
https://github.com/tobias/cognitect-http-client/blob/main/src/cognitect/http_client.clj#L318-L319 look sensible;
however I don't see the :socket-timeout
option 😮
I also found this: https://github.com/cognitect-labs/aws-api/issues/41
You could I interpret that as indicating that core.async is how you customise client
My best guess is that I would have to create my own instance via cognitect.http-client/create
and pass the expected timeouts.
https://github.com/tobias/cognitect-http-client/blob/main/src/cognitect/http_client.clj#L318-L319 look sensible;
however I don't see the :socket-timeout
option 😮