In IE 9, when sending an AJAX request to my server using either of the following methods
// SproutCore
SC.Request.postUrl(...).send()
// jQuery
$.post(...)
I am always seeing a nearly 30 second delay before the function returns, even though I can clearly see in WireShark that the request is received. It’s been a while since I’ve used Wireshark, so perhaps I’m just reading it wrong, but I see the following, which makes me think this may be an Apache issue perhaps?
Time Info
-------------------------------------------------------------------
77.716243 [PSH, ACK] Seq=1 Ack=1031 Win=7808 Len=896
107.576027 [FIN, ACK] Seq=897 Ack=1032 Win=7808 Len=0
Notice an almost exact 30 second difference. Also, I have confirmed that the first request contains the correct data from the server.
Is this just a bug in IE 9? Or perhaps a misconfiguration on my Apache server?
Any thoughts would be greatly appreciated!
Hmmm…looks like this was a non-issue. Apparently restarting my computer fixed the issue, so it isn’t a code-level problem. Sorry to dump this into the SO-sphere. Hopefully, though, someone else will see this and restart before posting a question 🙂
Update: I’m again experiencing the error, but I think it is server related, so I’ve opened a question on Server Fault.
Update x2: Well, not a real solution, but I found a workaround by using the following code:
For some reason, this forces the previous connection to close, and apparently the GET request immediately returns and isn’t pending, so it works.
I hope this helps some poor soul in the future.