title: Connection forcibly closed when copying from MySQL to MongoDB
body: <p>I've written a script that transforms my data from MySQL to MongoDB. During the handling of a table with 4,000,000 rows I got (when it was almost done):</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Python32\lib\site-packages\pymongo\connection.py", line 822, in _send_message
      sock_info.sock.sendall(data)
  socket.error: [Errno 10054] An existing connection was forcibly closed by the remote host
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "kolibri_to_mongo.py", line 94, in &lt;module&gt;
      coll.update(..., upsert=True)
    File "C:\Python32\lib\site-packages\pymongo\collection.py", line 411, in update
      _check_keys, self.__uuid_subtype), safe)
    File "C:\Python32\lib\site-packages\pymongo\connection.py", line 837, in _send_message
      raise AutoReconnect(str(e))
  pymongo.errors.AutoReconnect: [Errno 10054] An existing connection was forcibly closed by the remote host
  Exception mysql.connector.errors.InternalError: InternalError() in &lt;bound method SqlConn.__del__ of SQLConn(?)&gt; ignored
  </code></pre>
  
  <p>Is that a PyMongo Error or an SQL Error? Can I check for any limits (size or timeout) on the MySQL or MongoDB side? Or did just someone kill my query?</p>
  
  <p>EDIT: I've notice that now I cannot connect to the MongoDB anymore with a timeout error :( Are there any limits in MongoDB that need to be changed is it more likely to be another IT/Hardware problem?</p>