-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting UrlConnection timeout #254
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
I had a same issue similar to the issue of MasterDDT. issue detail: |
Which SDK version are you using?
4.0.2
What's the issue?
Requests get stuck here forever
If we could set the default connection timeout, we could avoid the call getting stuck and have it fail (so it would retry lower in the stack).
Steps/Sample code to reproduce the issue
Not sure how to reproduce. We commonly get the "(19) User request limit reached" error and retry it, but usually retry works. Once every few days, we get a stuck request.
Observed Results:
The issue was already seen here: #69 (cc @kogitant)
Expected Results:
Be able to set a connection timeout for all requests through the SDK. Note I do not want to set the global JVM flag
-Dsun.net.client.defaultConnectTimeout
because I have many other things running in the process.If the caller can somehow pass down the timeout value, then here we could call
con.setConnectTimeout
facebook-java-business-sdk/src/main/java/com/facebook/ads/sdk/APIRequest.java
Line 524 in 27ca82f
The text was updated successfully, but these errors were encountered: