httpのmain-key、ちゃんとお返事がもらえてる気がしてきた。お返事が来ない時にControllerが2分間過すのかな?
@zundan Timeout in the Request class should be much, much lower than 2 minutes
@Gargron Yep but I'm not sure what defines timeout as we've removed rack-timeout...
Also, now I seem to start to understand that the Controller might spending time to fetch the key for the HTTP signature on the request, when the remote server is not perfectly configured.
@zundan Controller fetches the key using Request class, which has a low timeout
@Gargron Ah, I see. Timeouts seem to be as intended. There might be something that cannot be terminated on the Ruby level? I'll keep checking things around this.
~ $ rails c
:
Loading production environment (Rails 5.2.4.1)
irb(main):001:0> Request::TIMEOUT
=> {:connect=>5, :read=>10, :write=>10}
@zundan The rails log writes the keyId for authenticated requests. If you find the slow response in the log, you can try fetching the key from console to see how long it takes
@Gargron Thanks! It seems to usually takes about 1 sec but the endpoint may not be showing consistent response :)