youknowone / itunes-iap

Apple iTunes In-app purchase verification tool
http://itunes-iap.readthedocs.io
Other
136 stars 50 forks source link

Add parameter "timeout" for method "verify" #31

Closed zejiachen closed 7 years ago

zejiachen commented 8 years ago

We are using this lib to verify ios orders on our servers constantly. However, we found that the verification process sometimes got stuck. We found code in itunes-iap as follows: http_response = requests.post(url, post_body, verify=verify_ssl, proxies={protocol: self.proxy_url})

and description from docs of the lib "requests": “By default, requests do not time out unless a timeout value is set explicitly” http://docs.python-requests.org/en/master/user/advanced/#timeouts

That means, the verification process using itunesiap might got stuck because timeout is not set.