Magento site duplicate order for authorize.net\r\n\r\n\r\n\r\n-This is a very special case where hosting company was blaming development company and development company stated that its related to server issue. \r\n-One of the site that was running ok suddenly had three duplicate orders. \r\n-As is the case we analysed and didnt find any code related issues.In that space of time  some admin pages were also not uploading css indicating something is wrong at server end. \r\nWhat was happening ?\r\n-When in Magento an order is placed using AIM authorize module.Curl connection is set up for 30 seconds.Here first the request is sent to Authorize.net payment gateway which internaly communicate with credit card gateways and as per the response responds back. \r\n-This response is then handled by magento code. \r\n-As there are few internal communication response from Authorize.net might be delayed by few seconds not if server is loaded and is slow curl might time out as the execution time will add up. \r\n-We confirmed that it was something at server end.Initially the server guys were reluctant to accept but later informed that there was some server upgrade so for few hrs it was a bit slow.