This has been happening to me a lot recently. Although I believe at least part of the problem is my wireless card is messing up and dropping packets, or disconnection altogether at times. It may be worth looking into, just making sure yours is working properly.