title: sending a serialized list larger than 2048 bytes over a socket
body: <p>hi folks i would like to know how can i send a serialized list that its size is greater than 2048 bytes over a socket i noticed if i send something greater i get the following error on the server side:
   Unterminated string starting at: line 1 column 2045 (char 2045)</p>
  
  <p>client side:</p>
  
  <pre><code>list = ['111111','222222'.......] list has over 4k elements maybe more 
  
   data = json.dumps({"elements":list})
   s = socket.socket()
   s.connect((127.0.0.1,1234))
   s.send(data)
   s.close()
  </code></pre>
  
  <p>Server side:</p>
  
  <pre><code> s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
   host = "127.0.0.1"
   port1 = 1234
   s.bind(('',port1))
   s.listen(5)
   c,addr_bot = s.accept()
  
  
   dataRecv = json.loads(c.recv(2048)
   for key,value in dataRecv.items:
     if key == 'elements':
       print key
  </code></pre>
  
  <p>thank you very much and look forward your help </p>
  
  <p>here is an example of the code </p>