What is the point to put deadlock code ahead of JSON in HTTP response?

Posted by Morgan Cheng on Stack Overflow See other posts from Stack Overflow or by Morgan Cheng
Published on 2010-04-02T08:21:00Z Indexed on 2010/04/02 8:23 UTC
Read the original article Hit count: 307

Filed under:
|
|
|

When sniffing Gmail and Facebook traffic, I found there are leading deadlock code before JSON response of XmlHttpRequest.

For example

for (;;);{"t":"continue"}

and

while(1); [["v","nW3OxUDq0kU.en.","8","51bec53f21305d9c"],["di",86]]

What is the purpose of this "for(;;);" and "while(1);" deadlock?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about http