Hi,
today we have found and confirmed a serious [from our perspective] issue on android [not sure about ios].
When a SINGLE network.request call is made, our web server gets 2 requests one after another. The time difference is several milliseconds.
The requests is processed twice and two responses are sent, in Corona, our callback function is called twice.
This does not happen all the time!
This clearly is an issue with HttpClient retry handling on Android:
http://stackoverflow.com/questions/8949487/duplicate-requests-from-httpclient
I can see the response header with:
X-Android-Sent-Millis
element, and two of the responses have the value with a few milliseconds difference.
This is a very serious problem for us, because we use IAP verification on server and now our response comes multiple times and users are awarded multiple times. Also synchronization of game progress can get f**ked up because of this [multiple lives are removed or added].
I have Enterprise license, but I cannot implement the fix to change the default strategy of the HttpClient, because it’s not a singleton.
Is there anyway I could workaround this problem?