{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2693","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2693/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2693/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2693/events","html_url":"https://github.com/kennethreitz/requests/issues/2693","id":97859950,"number":2693,"title":"Double POST requests sent at the same time when a delay is encountered.","user":{"login":"itsHaddad","id":11473261,"avatar_url":"https://avatars.githubusercontent.com/u/11473261?v=3","gravatar_id":"","url":"https://api.github.com/users/itsHaddad","html_url":"https://github.com/itsHaddad","followers_url":"https://api.github.com/users/itsHaddad/followers","following_url":"https://api.github.com/users/itsHaddad/following{/other_user}","gists_url":"https://api.github.com/users/itsHaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/itsHaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsHaddad/subscriptions","organizations_url":"https://api.github.com/users/itsHaddad/orgs","repos_url":"https://api.github.com/users/itsHaddad/repos","events_url":"https://api.github.com/users/itsHaddad/events{/privacy}","received_events_url":"https://api.github.com/users/itsHaddad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T04:54:45Z","updated_at":"2015-07-29T07:42:46Z","closed_at":null,"body":"I have a code that sends GET and POST requests every 10 seconds. But in case there is a delay, the POST requests line itself posts twice. I tried to debug this to the best of my ability and I couldn't but finalize that the library sends the requests twice, or it is something to do with TCP (but then the library should deal with it, right? \r\n\r\nThe code: # this is a general code to give an idea of my implementation \r\n\r\nimport requests\r\nimport time\r\nwhile True:\r\n     source = requests.get(url)\r\n     result = source.json()\r\n     resp = request.post(another_url,json = result,headers) \r\n     time.sleep(10)\r\n\r\nBy default, this should be ok, but I don't understand why I get this : \r\n\r\n \r\n![1 4 2_clean_3git](https://cloud.githubusercontent.com/assets/11473261/8950185/8dc6db68-35f0-11e5-933c-bf0b7c49c0ef.PNG)\r\n\r\nIf it is something to do with my code then please advise me, or otherwise I hope this bug can be fixed. \r\n\r\nThank you so much for this awesome library. \r\n"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/125871440","html_url":"https://github.com/kennethreitz/requests/issues/2693#issuecomment-125871440","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/2693","id":125871440,"user":{"login":"itsHaddad","id":11473261,"avatar_url":"https://avatars.githubusercontent.com/u/11473261?v=3","gravatar_id":"","url":"https://api.github.com/users/itsHaddad","html_url":"https://github.com/itsHaddad","followers_url":"https://api.github.com/users/itsHaddad/followers","following_url":"https://api.github.com/users/itsHaddad/following{/other_user}","gists_url":"https://api.github.com/users/itsHaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/itsHaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsHaddad/subscriptions","organizations_url":"https://api.github.com/users/itsHaddad/orgs","repos_url":"https://api.github.com/users/itsHaddad/repos","events_url":"https://api.github.com/users/itsHaddad/events{/privacy}","received_events_url":"https://api.github.com/users/itsHaddad/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T07:42:46Z","updated_at":"2015-07-29T07:42:46Z","body":"Thank you for your answer sir. \r\n\r\nActually I don't really know about this, I just included the resp.history and source.history into my code and I am getting [] [] for a few loops already. Maybe I need to leave it until that bug occurs and then I can will report back?!"}}