Getting ERR_EMPTY_RESPONSE on $.POST

前端 未结 5 1916
野的像风
野的像风 2020-12-21 13:06

I have a simple social networking site with chat functionality. I have used $.post a lot in multiple pages. The code works well on all pages except message.php

5条回答
  •  时光取名叫无心
    2020-12-21 13:38

    Simplest answer would be you allow your server to be spammed to the point that it stops responding (yet still recieving new connections). If the connections are not closed(resolved) in time you will also hit limitation of concurrent browser connections to domain (which I think is really happening - browser blocking you in making those request).

    You either switch to sockets, or send text to server on set interval of time. Alternatively you dont allow next post, till previous is resolved.

提交回复
热议问题