Why is my JSON from Django disconnected by about 2.1 MB?

I have a Django application and an Ajax response (on POST) that contains 2.8 MB JSON JSON is valid when it leaves the server, but when the browser receives it (jQuery 1.9), it was truncated to about 2.1 MB (and not could make out). The exact size varies - see the numbers below.

SENT:
2806260

RECIEVED:
2157907
2133383
2149795
2138351
2135271
2137015
2134291

Smaller answers work fine - it's just this big one that gets cut off.

The resulting size always seems to be an odd number, and maybe I'm going crazy here, but they all seem to be either prime numbers or multiples of large primes. It's true? That's a coincidence? What trims my JSON?

(RHEL6.5 64bit, python2.6, django1.6, jquery1.9)

+4
1

, , . , , , - .

0

Source: https://habr.com/ru/post/1532910/


All Articles