plugin_uploader icon indicating copy to clipboard operation
plugin_uploader copied to clipboard

REST repo - OkHttpClient causes SocketTimeoutException

Open jomuc05 opened this issue 2 years ago • 1 comments

OkHttpClient uses default timeout values of 10 seconds. For plugins of larger size, 10 seconds might be too short to upload the plugin into repository.

It might be usefull to have a configuration parameter to use longer timeout values or to disable timeout.

please have a look into my change: patch_timeouts.patch

jomuc05 avatar Sep 21 '23 07:09 jomuc05

Sorry for the delay, missed the notifications about this issue.

Ill give this a test, I am a bit perplexed since OkHttp has a unlimited call timeout so as long as packets are being sent, the time taken should not be a factor. My only guess is its the read timeout, it could be that the server takes longer then 10 seconds to process the payload before replying back. Let me take a look around how others are defining timeouts. I believe the native sockets can use system properties for this, but not sure that fits this case either.

brian-mcnamara avatar Mar 24 '24 18:03 brian-mcnamara