-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[android] Check for second callback in HttpRequestAndroid #2905
Conversation
4104257
to
b9e9237
Compare
Does this mean that you've found out why the callback gets called twice? If so can you explain what's going on? Thanks! |
When reproducing the crash I mentioned earlier I'm differentiating 2 outcomes: Scenario 1the application doesn't crash, related stacktrace below Scenario 2the application doesn't crash but |
To help debugging requests I just added an application interceptor (it's disabled by default): 561a36c This interceptor does not change the request or response in any way, it simply logs the outgoing request and the incoming response data. To see it in action, you need to enable it in the |
Awesome @zugaldia. I will also rebase this branch to bring in API 15 fixes for next SNAPSHOT |
👍 |
Just checking, but if we're done with this why not just merge into |
@bleege oh true... quick question, should we run a perf benchmark somehow before we merge just to test out concerns around JNI overhead (#2400 (comment)) |
Sounds like a great idea. Please make it happen. |
+1 for Merging this into master. Having the networking in the Java layer could allow for implementing tile data providers in the Java layer with minimal effort. (E.g. https://github.com/manimaul/mapbox-gl-native/tree/offline) |
@tobrun @zugaldia Do you have some ideas on how we can benchmark the HTTP library? There isn't an easy to request a bunch of tiles to load directly without modifying the C++ lib. Otherwise we could try panning to a set of locations after clearing the cache. We would need to add some logging or stat tracking code in the C++ layer to measure the difference however. |
I think I am going to merge this branch now. We can then go back and benchmark before and after once we figure out how best to do this. |
Ah damn the PR was marked as closed not merged! It was merged in af2d034 |
Fixes #2400