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
How to set SocketTimeout longer #1149
Comments
@philos3 are you using |
I suspect iOS does not have such configurations, it might be needed to be exposed first ( |
We will need to expose this property first in Cocoa SDK. But its possible. |
I would like to understand your underlying problem, @philos3. When do you get the error? Why do you think you can solve it by increasing the socket timeout? |
Well if you have an unstable connection, maybe 5s (default) isn't enough for a big portion of your customers, it's a known problem worldwide, so it should be at least configurable, obviously, this is remediation. |
I think we should come up with a solution that works out of the box. We should guarantee that the SDKs send the events to Sentry under such conditions. I think we shouldn't solve this problem by making it configurable. |
@philipphofmann I'm not sure I follow your comment, we cannot do much, the problem isn't in the SDK, it's in people's connection. |
|
Yes, but we could use a longer socket timeout if we get a |
this SocketTimeoutException is cause by the sentry sdk when in unstable connection. Sentry fail to report after 5000ms,and throw SocketTimeoutException(default 5000ms,I can't do anything) ,it is not my business code SocketTimeoutException,so I wish to set sentry SDK SocketTimeout longer ,maybe 7s can avoid receiving a lot of SocketTimeoutException |
Created getsentry/sentry-cocoa#2658 |
The default timeout of NSURLSession is 60 seconds. So I don't think this is an issue on iOS. Can't we increase the default value on Java to solve this issue for all users instead of exposing options to configure? The option has the downside of users having to be aware of it and we need to maintain it. |
We can add those 2 values on |
Caused by: java.net.SocketTimeoutException: failed to connect to XXXX/XX.XX.130.150 (port 443) from /XX.XX.3.122 (port 41780) after 5000ms
how can I set SocketTimeout longger
The text was updated successfully, but these errors were encountered: