You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
01-30 07:49:50.896 1308-1370/com.example. D/SLog﹕ Before
01-30 07:49:51.904 1308-1370/com.example D/SLog﹕ After
But if I set an unexisting gateway, so the request gets lost, the "After" text is never shown.
What I was trying to do, is to check the Headers from response object generated by the "execute" method of RequestExecution. And check if the response was a TIMEOUT. I can handle 500 responses, for example, but never TIMEOUT responses.
What I was thinking about, is that maybe ClientHttpResponse object generated by "execute" method, is always filled up with information from server and is never filled with information if the server doesn't return any information / can't reach server.
Any tip about how / where can I implement code to handle timeout? Note that if it's in the interceptor, it would be so great.
This is not working, because as I've set interceptors, RequestFactory is org.springframework.http.client.InterceptingClientHttpRequestFactory which doesn't have timeout methods.
Is there any way I can set timeout for this request factory?
Activity
sergicastellsague commentedon Feb 4, 2014
Oh... I found out the issue:
This is not working, because as I've set interceptors, RequestFactory is org.springframework.http.client.InterceptingClientHttpRequestFactory which doesn't have timeout methods.
Is there any way I can set timeout for this request factory?
sergicastellsague commentedon Feb 17, 2014
Answer in http://stackoverflow.com/questions/21451341/handling-timeout-with-androidannotations-spring-rest